Skip to content

Commit

Permalink
check return
Browse files Browse the repository at this point in the history
  • Loading branch information
asad-awadia committed Aug 18, 2021
1 parent 8c03449 commit d1b4e7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/webhook/image_swapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ func (p *ImageSwapper) Mutate(ctx context.Context, ar *kwhmodel.AdmissionReview,

lctx := logger.WithContext(ctx)

p.processContainers(lctx, ar, pod, pod.Spec.Containers)
_, err := p.processContainers(lctx, ar, pod, pod.Spec.Containers)
if err != nil {
logger.Err(err)
return nil, err
}
return p.processContainers(lctx, ar, pod, pod.Spec.InitContainers)
}

Expand Down

0 comments on commit d1b4e7a

Please sign in to comment.