-
Notifications
You must be signed in to change notification settings - Fork 974
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
manifest: remove forced replacement with x-kubernetes-preserve-unknown-fields
#2437
Conversation
I'll need some feedback since when I run it through the debug. the plan produces a plannedchange of just the value and not the entire resource. However if we were to run it without debug mode it still produces the same replacement action, which goes against the logic that's been applied in this PR. After resolving that we'll look into adding a test for this. 💯 |
Adding a note here that when adding a value into the tuple it will cause a recreation despite the type being the same:
An extra check is needed before we can get this merged. |
Recent commit addresses this check by using
Prior we would check by using the |
In the past, type changes was something that terraform panic to. This was early in the development of terraform core and appears it is not an issue anymore. Because of this we can remove the forced replacement for |
TypeChange
check for x-kubernetes-preserve-unknown-fields
x-kubernetes-preserve-unknown-fields
This PR fixes #1829 |
Any update on this PR? |
Any update on when we can expect this to be released? |
@BBBmau @alexsomesan whats blocking this PR? |
9aa4461
to
499507a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
I added an extra test case, just to be on the safe side.
Description
This check will prevent
x-kubernetes-preserve-unknown-fields
to cause a replacement whenever the value is changed. The idea is that it should ONLY cause a replacement if the type itself is changed and not the value.Fixes #2371
Fixes #2375
Fixes #1928
Fixes #2410
Acceptance tests
Output from acceptance testing:
Release Note
Release note for CHANGELOG:
References
Community Note