manifest: remove forced replacement with x-kubernetes-preserve-unknown-fields#2437
manifest: remove forced replacement with x-kubernetes-preserve-unknown-fields#2437alexsomesan merged 12 commits intomainfrom
x-kubernetes-preserve-unknown-fields#2437Conversation
|
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-fieldsx-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
alexsomesan
left a comment
There was a problem hiding this comment.
Looking good.
I added an extra test case, just to be on the safe side.
Description
This check will prevent
x-kubernetes-preserve-unknown-fieldsto 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