Skip to content
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

Remove finalizer when CR is in delete state without certificates #415

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

alexvanboxel
Copy link
Contributor

Sometimes the KafkaUser CR can come into a weird state where the CR is
being deleted before it got the chance to create credentials. This fix
will make sure the finalizer is being removed so the CR can be deleted.

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #414
License Apache 2.0

What's in this PR?

This PR will remove the finalized when the CR is in a delete state when it fails to create credentials.

Why?

Sometimes the KafkaUser CR can come into a weird state where the CR is being deleted before it got the chance to create credentials. If the delete state is a result of a namespace deletion the finalize step never happens because it tries to reconcile till the credentials are being created, but they can't be created because the namespace is being deleted.

Checklist

  • Implementation tested
  • Error handling code meets the guideline
  • Logging code meets the guideline
  • User guide and development docs updated (if needed)

Sometimes the KafkaUser CR can come into a weird state where the CR is
being deleted before it got the chance to create credentials. This fix
will make sure the finalizer is being removed so the CR can be deleted.
Copy link
Member

@baluchicken baluchicken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thx @alexvanboxel

@baluchicken baluchicken added the bug Something isn't working label Jul 7, 2020
@baluchicken baluchicken merged commit 2b8583c into banzaicloud:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community
Projects
None yet
3 participants