-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
There is no way to delete the Lease programatically #6677
Comments
What exactly do you mean by 'undeploying' your operator? Specifically, are you running the controller inside or outside the cluster? |
I am running the controller inside the cluster. By "undeploying" the operator I mean to use the Adding a |
Hi @MathieuCesbron I had a chance to test this, and the This was tested on the below:
The value for |
Thanks for testing it. There must be something I am doing wrong then, I will close the issue. |
Bug Report
With this config, a
Lease
is created and a leader is chosen. I installed my operator and all is working well. The issue is that everytime I undeploy the operator theLease
is not deleted. Is there a way to add a ownerownerReferences
to theLease
in the code ? Or something that will clean theLease
on undeploy.Thanks,
The text was updated successfully, but these errors were encountered: