Commit d5936890 authored by lichuqiang's avatar lichuqiang

fix bug in admission test

parent 3b2417a7
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment