Remove StartupProbe on debug with pod copy

Kubernetes-commit: ea6495e8284b7eccd292c67e21a32081c4a29967
This commit is contained in:
Mihai Costea 2023-06-07 15:40:10 +03:00 committed by Kubernetes Publisher
parent a5b0052b89
commit 900a7ab781
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ func removeLabelsAndProbes(p *corev1.Pod) {
for i := range p.Spec.Containers {
p.Spec.Containers[i].LivenessProbe = nil
p.Spec.Containers[i].ReadinessProbe = nil
p.Spec.Containers[i].StartupProbe = nil
}
}