mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #45591 from JonPulsifer/webhook-typo
Automatic merge from submit-queue (batch tested with PRs 41331, 45591, 45600, 45176, 45658) Fixing typo in ImagePolicyWebhook admission.go **What this PR does / why we need it**: Noticed a typo in kubectl events when working with the ImagePolicyWebhook admission controller **Special notes for your reviewer**: first time contributor
This commit is contained in:
commit
3cede38922
@ -169,7 +169,7 @@ func (a *imagePolicyWebhook) admitPod(attributes admission.Attributes, review *v
|
||||
|
||||
if !review.Status.Allowed {
|
||||
if len(review.Status.Reason) > 0 {
|
||||
return fmt.Errorf("image policy webook backend denied one or more images: %s", review.Status.Reason)
|
||||
return fmt.Errorf("image policy webhook backend denied one or more images: %s", review.Status.Reason)
|
||||
}
|
||||
return errors.New("one or more images rejected by webhook backend")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user