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
In the Pod resource, these are updated each time terraform apply is run. But in the Deployment resource, these are not updated. Somehow Deployment is working properly, but Pod is not, even though they share a lot of the same code.
Panic Output
N/A
Steps to Reproduce
Apply the Terraform config listed above.
terraform plan will show updates are needed. terraform apply will delete the resource and recreate it each time it's run.
Expected Behavior
terraform plan should be empty directly after running terraform apply.
Actual Behavior
The resource is replaced every time terraform apply is run. The state is never reconciled with the Terraform config.
Important Factoids
It only seems to be a problem in the Pod resource when volumes are used.
References
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
This doesn't happen for the other resources that use the pod spec because they are templates – the token volume doesn't get mounted until a Pod is actually created, then the volume/volume_mount get injected. So I think what we can do here is in our flattener for volume check for the default-token- prefix and ignore it to stop this diff from happening.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Jan 21, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version, Provider Version and Kubernetes Version
It's a problem in the latest release, and in the current version of
master
branch.Affected Resource(s)
kubernetes_pod
Terraform Configuration Files
Debug Output
https://gist.githubusercontent.com/dak1n1/3a481d1f3d7821dae229a9ceaec8351c/raw/b553996ef15702cc4ff120f670ad0659d0b0f30b/gistfile1.txt
The important part seems to be the volume and volume mount.
In the Pod resource, these are updated each time
terraform apply
is run. But in the Deployment resource, these are not updated. Somehow Deployment is working properly, but Pod is not, even though they share a lot of the same code.Panic Output
N/A
Steps to Reproduce
terraform plan
will show updates are needed.terraform apply
will delete the resource and recreate it each time it's run.Expected Behavior
terraform plan
should be empty directly after runningterraform apply
.Actual Behavior
The resource is replaced every time
terraform apply
is run. The state is never reconciled with the Terraform config.Important Factoids
It only seems to be a problem in the Pod resource when volumes are used.
References
Community Note
The text was updated successfully, but these errors were encountered: