Rename Wehook's API server host flag from --master to --api-server-host

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2021-03-24 11:20:55 +00:00
parent 746cd7460b
commit 109b3e0b28
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ func (o *WebhookOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.DynamicServingCASecretName, "dynamic-serving-ca-secret-name", "", "name of the secret used to store the CA that signs serving certificates certificates")
fs.StringSliceVar(&o.DynamicServingDNSNames, "dynamic-serving-dns-names", []string{""}, "DNS names that should be present on certificates generated by the dynamic serving CA")
fs.StringVar(&o.Kubeconfig, "kubeconfig", "", "optional path to the kubeconfig used to connect to the apiserver. If not specified, in-cluster-config will be used")
fs.StringVar(&o.APIServerHost, "master", "", ""+
fs.StringVar(&o.APIServerHost, "api-server-host", "", ""+
"Optional apiserver host address to connect to. If not specified, autoconfiguration "+
"will be attempted.")

View File

@ -68,7 +68,7 @@ func RunControlPlane(t *testing.T) (*rest.Config, StopFunc) {
t.Fatal(err)
}
webhookOpts, stopWebhook := webhooktesting.StartWebhookServer(t, []string{"--master=" + config.Host})
webhookOpts, stopWebhook := webhooktesting.StartWebhookServer(t, []string{"--api-server-host=" + config.Host})
crdsDir := apitesting.CRDDirectory(t)
crds := readCustomResourcesAtPath(t, crdsDir)
for _, crd := range crds {