You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible for adding/removing/re-ordering of environment variables in containers to result in spurious or overly-complex diffs in a terraform plan.
Something like this seems like a no-op from a containers PoV:
~ env {
~ name = "DJANGO_DEBUG" -> "EXPECTED_HOST"
~ value = "no" -> "my.host"
}
~ env {
~ name = "EXPECTED_HOST" -> "DJANGO_DEBUG"
~ value = "my.host" -> "no"
}
This is in a kubernetes_deployment.spec.template.spec.container.env
Thanks for opening this issue @willstott101. Does this diff happen immediately after creating the resource, or only if you make some changes to the ordering afterwards?
Description
It's possible for adding/removing/re-ordering of environment variables in containers to result in spurious or overly-complex diffs in a terraform plan.
Something like this seems like a no-op from a containers PoV:
This is in a
kubernetes_deployment.spec.template.spec.container.env
References
terraform docs: https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/customizing-differences
Community Note
The text was updated successfully, but these errors were encountered: