-
Notifications
You must be signed in to change notification settings - Fork 19
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-180: Add disable finalizer config #181
Issue-180: Add disable finalizer config #181
Conversation
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Signed-off-by: Shi, Crane <crane.shi@emc.com>
Codecov Report
@@ Coverage Diff @@
## master #181 +/- ##
=======================================
Coverage 80.36% 80.36%
=======================================
Files 10 10
Lines 1839 1839
=======================================
Hits 1478 1478
Misses 281 281
Partials 80 80
Continue to review full report at Codecov.
|
Signed-off-by: Aaron <aaron.wu@dell.com>
31562fb
to
3df8176
Compare
@@ -72,6 +73,10 @@ func main() { | |||
log.Warn("----- Running in test mode. Make sure you are NOT in production -----") | |||
} | |||
|
|||
if controllerconfig.DisableFinalizer { | |||
log.Warn("----- Running with finalizer disabled. -----") | |||
} |
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.
Good idea. We probably should do that on the other operators to avoid confusion for anybody debugging issues in future.
Co-authored-by: David Maddison <maddisondavid@gmail.com> Signed-off-by: Shi, Crane <crane.shi@emc.com>
3ba8dca
to
bc698fc
Compare
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
@CraneShiEMC looks like PR is forked from a wrong repo, Could you please correct it |
Change log description
add DisableFinalizer config and skip adding zkFinalziers when set it to true.
Purpose of the change
Fixes #180
What the code does
skip adding zkFinalziers when DisableFinalizer set to true.
How to verify it
Set disableFinalizer to true in values and deploy Bookkeeper operator, the deployed Bookkeeper clusters should have the finalizers as empty.