controller: instance: Fix a bug that a loop of error caused by instance was in error then removed
Error state should be covered by start/stop already
@@ -99,10 +99,6 @@ func (h *InstanceHandler) ReconcileInstanceState(obj interface{}, spec *types.In
return err
}
- if status.CurrentState == types.InstanceStateError {
- return h.deletePodForObject(runtimeObj)
- }
-
pod, err := h.getPod(podName)
if err != nil && !apierrors.IsNotFound(err) {
return err
