Skip to content

Custom finalizer for deployment #494

Answered by prochnowc
prochnowc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @buehler

I managed to solve it.

The exact problem was:

Each CR managed by my operator gets a finalizer assigned. When deleting the deployment via helm, the operator and the CRs get deleted simultanously. Since the operator was deleted before it had a chance to execute the custom finalizer's the delete operation hung and did never complete.

The solution:

In my operator I've implemented a finalizer for it's own deployment. The finalizer blocks the deletion of the deployment until all finalizers of my CRs have run.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by prochnowc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants