Cannot apply changes to kubernetes_manifest
directly after it has been imported
#2639
Labels
kubernetes_manifest
directly after it has been imported
#2639
Hello,
Terraform fails to run apply after
kubernetes_manifest
that is defining kubernetes deployment has been imported if doing so would modify order of environment variables.Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/theKlisha/4ef98730ba5836cc4fe7d1168b39e930
Steps to Reproduce
terraform apply
terraform state rm kubernetes_manifest.manifest
terraform import kubernetes_manifest.manifest "apiVersion=apps/v1,kind=Deployment,namespace=default,name=test"
terraform apply
Expected Behavior
apply should succeed
Actual Behavior
apply fails with:
Important Factoids
resources[0].instances[0].attributes.object
toresources[0].instances[0].attributes.manifest
after import (indices for the provided example). This causes significant amount of drift but only on terraform state side, whats more important, apply goes smoothly.Community Note
The text was updated successfully, but these errors were encountered: