Refactor webhookclientConfig validation of admission and audit registration

This commit is contained in:
Mehdy Bohlool
2018-10-30 11:57:29 -07:00
parent 530c79939f
commit 1587d189cb
5 changed files with 123 additions and 177 deletions

View File

@@ -159,7 +159,7 @@ func TestValidateWebhookConfiguration(t *testing.T) {
URL: strPtr("example.com/k8s/webhook"),
},
},
expectedError: `webhook.clientConfig.url: Required value: exactly one of url or service is required`,
expectedError: `webhook.clientConfig: Required value: exactly one of url or service is required`,
},
{
name: "blank URL",