New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubernetes_manifest
always shows changes in creationTimestamp
#1652
Comments
Hi! The problem here is that the provider strips However, we recommend all our users to convert the yaml manifests to HCL offline, using the tfk8s tool. This is the preferred workflow for |
@alexsomesan this does not apply to CRDs, doesn't it? What is an advice for CRD users? |
I had a CRD written with an HCL map and was having this issue. The previous author had written
|
Can confirm that tfk8s emitted |
For those using
|
Hi, I encounter this question too. all my "CRD" need modification every time because of field "object.metadata.creationTimestamp". i also add " metadata.creationTimestamp" in the computed_field , but no help. hope this bug can be fixed soon. ~ resource "kubernetes_manifest" "prometheus_operator_crds" {
|
As suggested by @alexsomesan, I converted yamls offline removing all occurrences of creationTimestamp and it worked. I guess having resources offline is the way forward and is in fact more robust |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
kubernetes_manifest
Terraform Configuration Files
Debug Output
none so far, unsure if needed
Panic Output
none so far
Steps to Reproduce
terraform plan
afterwardsExpected Behavior
Since nothing has changed in the YAML manifests, I expect the
terraform plan
to exit without showing changesActual Behavior
Terraform always wants to modify the resource:
Important Factoids
I'm running OKD 4.9, I did not have time yet to try and reproduce it e.g. on a GKE, AKS or something.
References
Community Note
The text was updated successfully, but these errors were encountered: