Bug 2093462: status: Watch clusteroperators#714
Bug 2093462: status: Watch clusteroperators#714openshift-ci[bot] merged 1 commit intoopenshift:masterfrom
Conversation
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
|
The new E2E test will need to be added to |
|
/retitle Bug 2093462: status: Watch clusteroperators |
|
@Miciah: This pull request references Bugzilla bug 2093462, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/bugzilla refresh |
|
@gcs278: This pull request references Bugzilla bug 2093462, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
9c35ad7 to
869481c
Compare
|
@Miciah: This pull request references Bugzilla bug 2093462, which is invalid:
Comment DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Updated for #756. |
|
/bugzilla refresh |
|
@Miciah: This pull request references Bugzilla bug 2093462, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test e2e-aws-operator |
|
Must-gather. /test e2e-aws-single-node |
|
I think the bindata.go update was missing from openshift/cluster-dns-operator#261 |
| &source.Kind{Type: &configv1.ClusterOperator{}}, | ||
| // The status controller doesn't care which ingresscontroller it | ||
| // is reconciling, so just enqueue a request to reconcile the | ||
| // default ingresscontroller. |
There was a problem hiding this comment.
Why isn't it necessary to reconcile all the ingresscontrollers? Because there is only one cluster operator for all ingresscontrollers?
There was a problem hiding this comment.
Right, the status controller just needs some ingresscontroller for its reconciliation request, which will cause it to update the "ingress" clusteroperator, and there should always be a "default" ingresscontroller.
There was a problem hiding this comment.
If we accept #778, there might not be a default ingresscontroller, but I think more work probably needs to be done on that.
| } | ||
| if err := kclient.Delete(context.TODO(), co); err != nil { | ||
| t.Fatalf("failed to delete clusteroperator %q: %v", coName.Name, err) | ||
| } |
There was a problem hiding this comment.
Is there a way to check/wait until it's deleted before verifying that it is recreated automatically?
There was a problem hiding this comment.
I could add a check to verify that the UID changed.
The ingress operator only includes |
869481c to
1d65abf
Compare
|
Last push updates |
|
/test e2e-upgrade |
Add a watch on clusteroperators in the status controller so that it updates or recreates the ingress clusteroperator as necessary should something else update or delete it. This commit fixes bug 2093462. https://bugzilla.redhat.com/show_bug.cgi?id=2093462 * manifests/00-cluster-role.yaml: Allow the operator to list and watch clusteroperators. * pkg/manifests/bindata.go: Regenerate. * pkg/operator/controller/status/controller.go (New): Watch clusteroperators with a map function and predicate to reconcile the default ingresscontroller if clusteroperators.config.openshift.io/ingress is updated. * test/e2e/all_test.go (TestAll): Add the new TestOperatorRecreatesItsClusterOperator test to the serial tests. * test/e2e/operator_test.go (TestOperatorRecreatesItsClusterOperator): New test. Verify that the operator recreates the "ingress" clusteroperator if the clusteroperator is deleted.
1d65abf to
a21bde2
Compare
|
Rebased. |
|
/lgtm |
|
/test e2e-aws-operator |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: candita, Miciah The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
@Miciah: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@Miciah: All pull requests linked via external trackers have merged: Bugzilla bug 2093462 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Add a watch on clusteroperators in the status controller so that it updates or recreates the ingress clusteroperator as necessary should something else update or delete it.
manifests/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 the default ingresscontroller ifclusteroperators.config.openshift.io/ingressis updated.test/e2e/all_test.go(TestAll): Add the newTestOperatorRecreatesItsClusterOperatortest to the serial tests.test/e2e/operator_test.go(TestOperatorRecreatesItsClusterOperator): New test. Verify that the operator recreates the "ingress" clusteroperator if the clusteroperator is deleted.This PR is the cluster-ingress-operator equivalent of openshift/cluster-dns-operator#261.
This PR supersedes #702. Cc: @mfojtik