-
Notifications
You must be signed in to change notification settings - Fork 211
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
Issue 300: Zookeeper Operator pre-delete hook #301
Conversation
Signed-off-by: SrishT <[email protected]>
Signed-off-by: SrishT <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
=======================================
Coverage 84.64% 84.64%
=======================================
Files 11 11
Lines 1309 1309
=======================================
Hits 1108 1108
Misses 133 133
Partials 68 68 Continue to review full report at Codecov.
|
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.
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.
Do we need to ensure role and role bindings deleted in addition to the cluster role?
@anishakj we are only ensuring that the zookeepercluster custom resource has only been deleted before triggering the delete. We are not checking for the RBAC being already deleted since it is going to be deleted by this chart itself. |
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.
LGTM
Signed-off-by: SrishT [email protected]
Change log description
Provides a pre-delete hook which ensures that custom resources are deleted before deleting the operator.
Purpose of the change
Fixes #300
What the code does
Allows the operator to be deleted via helm only if the zookeepercluster custom resource has already been deleted, not otherwise.
How to verify it