[node operator] PendingNode: check if node was deleted every 30 seconds after regular deadline expires

Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
Malte Poll 2022-07-20 10:50:42 +02:00 committed by Malte Poll
parent 0b0a3454fa
commit b0d93b96dc

View File

@ -128,6 +128,7 @@ func (r *PendingNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request)
case updatev1alpha1.NodeGoalLeave:
logr.Info("Node was not terminated on time", "pendingNodeGoal", pendingNode.Spec.Goal, "cspNodeState", nodeState)
// TODO: decide if other actions should be taken here (e.g. send another request to delete node)
return ctrl.Result{RequeueAfter: defaultCheckInterval}, nil
}
return ctrl.Result{}, nil