-
Notifications
You must be signed in to change notification settings - Fork 23
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
Available CRDs check feature #253
Available CRDs check feature #253
Conversation
a73fdc2
to
ad84d42
Compare
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment rest is same as the one implemented in ocs-operator, isn't it? btw, are you planning on sending another PR for using this mechanism for storagecluster cr?
asking because, I'm going to remove specific code in a couple of days (when we get RC).
Reasons for this enhancement: - A controller cannot set up a watch for a CRD that is not installed on the cluster, trying to set up a watch will panic the operator - There is no known way, that we are aware of, to add a watch later without client cache issue How does the enhancement work around the issue: - On start of the operator(main), detect which CRDs are avail - At the start each reconcile of controller, we fetch the CRD of interest and compare it with CRDs fetched in previous step, If there is any change, we panic the op Signed-off-by: Rewant Soni <[email protected]> Signed-off-by: raaizik <[email protected]>
Adds a script that bypasses pod restarts Signed-off-by: Rewant Soni <[email protected]> Signed-off-by: raaizik <[email protected]>
No, I don't plan to send a PR to use this for storageCluster CR |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leelavg, raaizik, rewantsoni 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 |
7e5e1c9
into
red-hat-storage:main
Available CRDs check feature Signed-off-by: rchikatw <[email protected]>
Available CRDs check feature Signed-off-by: rchikatw <[email protected]>
Available CRDs check feature Signed-off-by: rchikatw <[email protected]>
Changes
In the future we will need to watch Maintenance Mode CRD by ramen as well
This PR just adds the base for watching the DRClusterConfig CRD by ramen, the actual creation will be added in #177
Ref: red-hat-storage/ocs-operator#2745