Fix old runner pods stuck in Terminating since #1579 (#1585)

Ref #1579
This commit is contained in:
Yusuke Kuoka 2022-06-29 22:02:42 +09:00 committed by GitHub
parent 9b28e633c1
commit a517c1ff66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,11 @@ func (r *RunnerPodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
return ctrl.Result{}, client.IgnoreNotFound(err)
}
if _, isRunnerPod := runnerPod.Labels[LabelKeyRunner]; !isRunnerPod {
_, isRunnerPod := runnerPod.Labels[LabelKeyRunner]
_, isRunnerSetPod := runnerPod.Labels[LabelKeyRunnerSetName]
_, isRunnerDeploymentPod := runnerPod.Labels[LabelKeyRunnerDeploymentName]
if !isRunnerPod && !isRunnerSetPod && !isRunnerDeploymentPod {
return ctrl.Result{}, nil
}