Skip to content

Commit

Permalink
kata-webhook: Skip mutating sonobuoy pods
Browse files Browse the repository at this point in the history
Fixes: kata-containers#3550

Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
  • Loading branch information
surajssd committed Jul 12, 2023
1 parent 765c67b commit d9e2103
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kata-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func annotatePodMutator(_ context.Context, ar *kwhmodel.AdmissionReview, obj met

if pod.GetNamespace() == "sonobuoy" {
fmt.Println("sonobuoy pods will not be changed to kata", pod.GetNamespace(), pod.GetName())
return &kwhmutating.MutatorResult{}, nil
}

for i := range pod.Spec.Containers {
Expand Down

0 comments on commit d9e2103

Please sign in to comment.