Commit 65d9b4ef authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51450 from lichuqiang/typo_fix

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix bug in admission test tiny bug fix
parents 29d2f15c d5936890
......@@ -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