-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent unintended changes to operator name/space
Previously, if the name or namespace of the subscription was changed in an OperatorPolicy, previously related resources would be orphaned and cause confusion. This is especially important because these fields can be set by templates, which could change unexpectedly. Now, such changes will not take effect unless a special annotation, 'operatorpolicy.policy.open-cluster-management.io/namechange' is set by the user (conventionally with a timestamp, but any new value would suffice). When that annotation is not set, or has not been reset for a new change, the policy will be considered invalid, and noncompliant. Refs: - https://issues.redhat.com/browse/ACM-12071 Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
- Loading branch information
1 parent
40d47e0
commit 1c0b230
Showing
5 changed files
with
179 additions
and
11 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
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