In VMware cluster, some pods are stuck in ProviderFailed state, and leader election function, provided by operator SDK, is unable to process that, so new pods are stuck in wait cycle.
Purpose of the change
Fixes #579
What the code does
Customise the leader.Become() function of operator-sdk and if the pod is in ProviderFailed state, delete the pod and configmap so that new pod can come up.
How to verify it
Verify in Vmware setup pods are coming up successfully after node reboot.
Change log description
In VMware cluster, some pods are stuck in ProviderFailed state, and leader election function, provided by operator SDK, is unable to process that, so new pods are stuck in wait cycle.
Purpose of the change
Fixes #579
What the code does
Customise the leader.Become() function of operator-sdk and if the pod is in
ProviderFailed
state, delete the pod and configmap so that new pod can come up.How to verify it
Verify in Vmware setup pods are coming up successfully after node reboot.