-
Notifications
You must be signed in to change notification settings - Fork 458
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
Deletion of resources shouldn't fail if the webhook server isn't available #56
Comments
@jpkrohling - One potential thought is to split the "validating-webhook-configuration" into two validating webhooks. The second one would be for the "DELETE" and would have |
Not sure we do anything at all in our code. When a CR is deleted, all the resources that are owned by this CR are deleted automatically. In our reconciliation function, we'll see the delete event but won't find the CR, in which case we'll just return. So, I think your idea would work nicely. opentelemetry-operator/controllers/opentelemetrycollector_controller.go Lines 116 to 125 in 543ff61
|
Great! This will be straightforward to implement then, @jpkrohling. This is now in my backlog to tackle. |
@jpkrohling I can work on this! |
Go ahead! Can you please double-check the kubebuilder docs to see if they have a recommendation about this? What we have right now is following what was bootstrapped by kubebuilder when I first bootstrapped this operator, and things might have changed since then. |
When the operator isn't up and running, removing resources will fail with:
The text was updated successfully, but these errors were encountered: