-
Notifications
You must be signed in to change notification settings - Fork 975
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
Error: unexpected new value in metadata.annotations: default computed_fields should cover it #1591
Comments
I too am having this same issue. It is happening when I spawn an environment without declaring spot usage. Once I modify it to include spot declaration, thus modifying the end result manifest annotations, I get the same exact error. It also errors out on other sections that are modified, even with them added inside I created
Versions of providers and CLI used:
|
The documentation says that the default is Unfortunately the docs are not as clear as they could be about this, but the part I've bolded below makes it clear:
You've set it to a concrete list of other fields, so the defaults are overridden, and you need to include them explicitly if you want them. |
I am having the same issue as @thomas-riccardi - regardless if I omit computed_fields compltely, or if I set it to |
I don't know if you have to be more specific to avoid it from raising, but I changed to
and it passed EDIT OK, it seems that did not fix it. It just happens that we apply the changes twice and the second time it does not fail. (?) |
Is there any resolution for this? This bug means you essentially cannot use a replicaset with this provider, which seems... very wrong. I have tried the above workarounds, which according to the documentation should work, but not having any luck. example:
my manifest computed_fields looks like this:
I have tried without the escaped quotes, but it will not plan because it expects a string. It seems like it is interpreting the escaped sequences literally, but I cannot get around this issue. edit: my particular issue appears to be a bug with a wait block with rollout = true set for the deployment. When I remove this block, I do not see this behavior anymore, no matter what computed_fields is set to. |
I confirm, we do experience exactly the same issue as @rigman24 - when It's currently very incovenient to manage daemonsets using this resource and there are no many other options as the EDIT: So I have troubleshooted further, and I'm experiencing the error even when I remove the I plan to check if migrating the DaemonSet from |
I've tried to use |
I'm using
@alexsomesan it looks like #2432 (created by @BBBmau and marked as closing this issue) is assigned to you, do you have an estimate of when this will be merged? |
We have the same issue with deployments as well, where each update of the deployments triggers the error: This has been ongoing for quite a while, does anyone have a workaround? |
To sum up the issue here, when applying a #2432 seems to fix the issue but the PR is awaiting review since April 2024. Thanks! |
I hate to add a simple "me too", but we're seeing the same thing with the There seemed to be some energy being spent on this - has it gone off the boil? |
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
kubernetes_resource
Terraform Configuration Files
Steps to Reproduce
terraform apply
terraform apply
Expected Behavior
The terraform apply works
Actual Behavior
The terraform apply fails with the following error:
Important Factoids
computed_fields
. If I understand correctly, the default value includes themetadata.annotations
, so it should cover my scenario, shouldn't it?computed_fields = ["metadata.annotations","metadata.labels"]
doesn't change anythingReferences
computed_fields
though? (and thus fixed by it?)Community Note
The text was updated successfully, but these errors were encountered: