Remove StartupProbe on debug with pod copy

This commit is contained in:
Mihai Costea 2023-06-07 15:40:10 +03:00
parent c3750e4450
commit ea6495e828
No known key found for this signature in database
GPG Key ID: FF8F2E2065B3DFD9

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
}
}