-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watch required CRDs, and restart operator if they are removed #417
Conversation
Signed-off-by: Andrej Krejcir <[email protected]>
Skipping CI for Draft Pull Request. |
This will make it easier to create cancellation context in the next commit. Signed-off-by: Andrej Krejcir <[email protected]>
Added a new component, CrdWatch, that watches CRDs in cluster. If some of the needed CRDs are missing, the SSP reconciler runs in a "cleanup only" mode, and does not reconcile any resources, only deletes resources when a SSP resource is deleted. Signed-off-by: Andrej Krejcir <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
CI will fail until #418 is merged. /hold |
/retest |
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akrejcir The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cherry-pick release-v0.16 |
@akrejcir: new pull request created: #420 In 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. |
What this PR does / why we need it:
Previously, the operator did not start before all needed CRDs were installed. This meant that it was not possible to remove an SSP resource if CDI was not installed.
This PR adds a
CrdWatch
component, which restarts the operator, if some needed CRDs are deleted while it is running.Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2122236
Release note: