imagepolicy admission.go: typo fix
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user