https://www.runatlantis.io/ logo
Title
s

streets

05/16/2023, 5:43 PM
i have a secret in aws secrets manager with a value like:
{
  "ATLANTIS_GITLAB_TOKEN": "glpat-xxxx-xxxx"
}
i have created a kubernetes secret from this secret via the csi driver. i have used
loadEnvFromSecrets
to load the secret as an env var for
ATLANTIS_GITLAB_TOKEN
. the pod crashloops on start with:
atlantis-0 atlantis Error: --gh-user/--gh-token or --gh-app-id/--gh-app-key-file or --gh-app-id/--gh-app-key or --gitlab-user/--gitlab-token or --bitbucket-user/--bitbucket-token or --azuredevops-user/--azuredevops-token must be set
so i edited the statefulset to use image:
ubuntu:latest
just so i could keep the pod alive long enough to check the env var is there, and it is:
root@atlantis-0:/# env | grep ATLANTIS_GITLAB_TOKEN
ATLANTIS_GITLAB_TOKEN=glpat-xxxx-xxxxx
why does atlantis fail to start? i deployed atlantis via latest chart version chart version
4.12.5
@PePe Amengual any idea what I'm doing wrong here?
logLevel is set to
debug
but i don't get any further information
p

PePe Amengual

05/16/2023, 9:18 PM
what about the user?
is that set?
s

streets

05/16/2023, 9:45 PM
it wasn't set, sorry for wasting your time
👍🏽 1
😳