mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 11:48:15 +00:00
the image policy webhook missing field log
This commit is contained in:
@@ -88,7 +88,7 @@ func (a *imagePolicyWebhook) filterAnnotations(allAnnotations map[string]string)
|
|||||||
// Function to call on webhook failure; behavior determined by defaultAllow flag
|
// Function to call on webhook failure; behavior determined by defaultAllow flag
|
||||||
func (a *imagePolicyWebhook) webhookError(attributes admission.Attributes, err error) error {
|
func (a *imagePolicyWebhook) webhookError(attributes admission.Attributes, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(2).Infof("error contacting webhook backend: %s")
|
glog.V(2).Infof("error contacting webhook backend: %s", err)
|
||||||
if a.defaultAllow {
|
if a.defaultAllow {
|
||||||
glog.V(2).Infof("resource allowed in spite of webhook backend failure")
|
glog.V(2).Infof("resource allowed in spite of webhook backend failure")
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user