-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ResourceManager -> ObjectManager (#548)
The ResourceManager type is split into an interface (ObjectManager) and implementing struct (UpdatingObjectManager). AggregateReconciler, ChildReconciler and ChildSetReconciler are updated to allow specifying an alternative strategy with fallbacks to the previous behavior. Backwards compatibility is preserved with a number of deprecations, including: - `ResourceManager` is deprecated in favor of `ObjectManager` for a generic type, or `UpdatingObjectManager`. - `AggregateReconciler.{HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize}` are deprecated in favor of `AggregateReconciler. AggregateObjectManager`. - `ChildReconciler.{Finalizer, HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize, SetResourceManager}` are deprecated in favor of `ChildReconciler.ChildObjectManager`. - `ChildSetReconciler.{HarmonizeImmutableFields, MergeBeforeUpdate, Sanitize}` are deprecated in favor of `ChildSetReconciler. ChildObjectManager`. Other strategies can be provided in the future, like replacing Update() calls with server-side apply. Signed-off-by: Scott Andrews <scott@andrews.me>
- Loading branch information
Showing
7 changed files
with
389 additions
and
151 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
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
Oops, something went wrong.