Replies: 1 comment 1 reply
-
Adding feedback from today's community meeting:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm starting this thread to discuss how to simplify the shutdown logic in the operator [1]
The procedure includes the following steps:
a. Set ResourfceInjectorWebhook.FailurePolicy = Ignore (mutating webhook for pods)
this can be safely removed, as the resource injector failure policy is Ignore by default.
b. Set ValidationWebhook.FailurePolicy = Ignore for sriovoperatorconfigs and sriovnetworknodepolicies.
c. Remove finalizers from SriovNetworks
Finalizers are used to delete NetworkAttachmentDefinition when a SriovNetwork is deleted. We can't use OwnerReference because net-attach-def can be in a different namespace than the SriovNetwork. BTW, I'm not getting exactly which scenario we are trying to save with them.
I'm inclined to get rid of all of those step. Does anyone has some insights on this topic?
[1] https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/a3a5ba993eb0fc407a8df67ce6d3a1e5dfa3c9c6/pkg/utils/shutdown.go
Beta Was this translation helpful? Give feedback.
All reactions