fix: register canonical SELinux socket path and pass staticcheck

This commit is contained in:
Lemon-miaow committed 2026-10-07 03:07:35 +08:00
1 parent 296c7bb274
commit 3327c13429
3 files changed
+27 -4

No files matched your search

+2 -2
View File
@@ -172,7 +172,7 @@ func (e nodeExecutor) run(ctx context.Context, r nodecontrol.Request, stage func
return err
}
if len(deployment.Spec.Template.Spec.Containers) == 0 {
return errors.New("Felis API image is unavailable")
return errors.New("the Felis API image is unavailable")
}
image := deployment.Spec.Template.Spec.Containers[0].Image
if r.Action == "enable" {
@@ -301,7 +301,7 @@ func (e nodeExecutor) requireStopped(ctx context.Context, r nodecontrol.Request)
continue
}
if p.Status.Phase != corev1.PodSucceeded && p.Status.Phase != corev1.PodFailed {
return fmt.Errorf("Pod %s has not exited (phase %s); wait for game and maintenance workloads to stop", p.Name, p.Status.Phase)
return fmt.Errorf("pod %s has not exited (phase %s); wait for game and maintenance workloads to stop", p.Name, p.Status.Phase)
}
}
// Prevent a pending wake intent racing admission or an installation.