-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take last applied configuration into account when patching (#341)
If, as previously, we ignore the last-applied annotation when comparing desired and actual, we end up with a result where, when deleting all annotations in a change, no annotations are deleted(!) Going from ``` metadata: name: my-pod annotations: x: y ``` to: ``` metadata: name: my-pod ``` used to result in a patch that updated the last applied configuration value only. Now it correctly sets the old annotations to None too. Break out apply_patch as a separate method to allow it be tested in isolation. Ensure that the last-applied annotation is sorted. Ensure that the last-applied annotation is loaded consistently (i.e. without unnecessary conversion to u'value's)
- Loading branch information
1 parent
541edbf
commit 29851d0
Showing
2 changed files
with
89 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters