mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +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()
|
||||
wh, err := NewImagePolicyWebhook(configFile)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return wh.(*imagePolicyWebhook), err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user