mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-04 07:49:35 +00:00 
			
		
		
		
	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 !review.Status.Allowed {
 | 
				
			||||||
		if len(review.Status.Reason) > 0 {
 | 
							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")
 | 
							return errors.New("one or more images rejected by webhook backend")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user