diff --git a/tools/testing/kata-webhook/main.go b/tools/testing/kata-webhook/main.go index 8e040d60df..0520a472df 100644 --- a/tools/testing/kata-webhook/main.go +++ b/tools/testing/kata-webhook/main.go @@ -57,15 +57,6 @@ func annotatePodMutator(_ context.Context, ar *kwhmodel.AdmissionReview, obj met return &kwhmutating.MutatorResult{}, nil } - for i := range pod.Spec.Containers { - if pod.Spec.Containers[i].SecurityContext != nil && pod.Spec.Containers[i].SecurityContext.Privileged != nil { - if *pod.Spec.Containers[i].SecurityContext.Privileged { - fmt.Println("privileged container: ", pod.GetNamespace(), pod.GetName()) - return &kwhmutating.MutatorResult{}, nil - } - } - } - if pod.Spec.RuntimeClassName != nil { fmt.Println("explicit runtime: ", pod.GetNamespace(), pod.GetName(), pod.Spec.RuntimeClassName) return &kwhmutating.MutatorResult{}, nil