Hello there, so i am looking to deploy my app on my eks cluster using kubernetes_deployment, it works like a charm for one specific app.
Now i am looking into generalizing my deployment to use it on multiple apps with minimal differences, one difference is that for app A i need to set git credentials as env vars and app B i don’t need those
I am creating these env vars from a secret like so.
My question is can i have these be conditional ? IE if (app A => create my env vars ) if app B don’t
env {
name = "GIT_USERNAME"
value_from {
secret_key_ref {
key = "username"
name = "my-secret"
}
}
}
env {
name = "GIT_PASSWORD"
value_from {
secret_key_ref {
key = "password"
name = "my-secret"
}
}
}