From 900a7ab7817456ecdf30e2ac5ab9c151f1d30449 Mon Sep 17 00:00:00 2001 From: Mihai Costea Date: Wed, 7 Jun 2023 15:40:10 +0300 Subject: [PATCH] Remove StartupProbe on debug with pod copy Kubernetes-commit: ea6495e8284b7eccd292c67e21a32081c4a29967 --- pkg/cmd/debug/profiles.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cmd/debug/profiles.go b/pkg/cmd/debug/profiles.go index 656f92bf8..603970fcb 100644 --- a/pkg/cmd/debug/profiles.go +++ b/pkg/cmd/debug/profiles.go @@ -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 } }