mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
fix bug in admission test
This commit is contained in:
parent
3b2417a7f8
commit
d59368906a
@ -404,6 +404,9 @@ func newImagePolicyWebhook(callbackURL string, clientCert, clientKey, ca []byte,
|
|||||||
}
|
}
|
||||||
defer configFile.Close()
|
defer configFile.Close()
|
||||||
wh, err := NewImagePolicyWebhook(configFile)
|
wh, err := NewImagePolicyWebhook(configFile)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
return wh.(*imagePolicyWebhook), err
|
return wh.(*imagePolicyWebhook), err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user