From 109b3e0b2806cb8640df0422e445a4e12f9a2bbf Mon Sep 17 00:00:00 2001 From: joshvanl Date: Wed, 24 Mar 2021 11:20:55 +0000 Subject: [PATCH] Rename Wehook's API server host flag from --master to --api-server-host Signed-off-by: joshvanl --- cmd/webhook/app/options/options.go | 2 +- test/integration/framework/apiserver.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/webhook/app/options/options.go b/cmd/webhook/app/options/options.go index ac4381398..9693daed0 100644 --- a/cmd/webhook/app/options/options.go +++ b/cmd/webhook/app/options/options.go @@ -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.") diff --git a/test/integration/framework/apiserver.go b/test/integration/framework/apiserver.go index 7bd8adff4..217900275 100644 --- a/test/integration/framework/apiserver.go +++ b/test/integration/framework/apiserver.go @@ -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 {