Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a watch on clusteroperators in the status controller so that it updates or recreates the dns clusteroperator as necessary should something else update or delete it. * manifests/0000_70_dns-operator_00-cluster-role.yaml: Allow the operator to list and watch clusteroperators. * pkg/operator/controller/status/controller.go (New): Watch clusteroperators with a map function and predicate to reconcile dnses.operator.openshift.io/default if clusteroperators.config.openshift.io/dns is updated. * test/e2e/operator_test.go (TestOperatorRecreatesItsClusterOperator): New test. Verify that the operator recreates the "dns" clusteroperator if the clusteroperator is deleted.
- Loading branch information
Showing
3 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,8 @@ rules: | |
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
|
||
- apiGroups: | ||
- config.openshift.io | ||
|
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