Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6b48b7b

Browse files
committed
Changed flag handling so AllowUnauthenticatedClients respects the default value passed via cli.WithBaseOpts().
Fixes #44
1 parent bfe7287 commit 6b48b7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/commands/root/flag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func installFlags(flags *pflag.FlagSet, c *opts.Opts) {
4949
"kubeAPIBurst is the burst to allow while talking with kubernetes apiserver")
5050

5151
flags.StringVar(&c.ClientCACert, "client-verify-ca", os.Getenv("APISERVER_CA_CERT_LOCATION"), "CA cert to use to verify client requests")
52-
flags.BoolVar(&c.AllowUnauthenticatedClients, "no-verify-clients", false, "Do not require client certificate validation")
52+
flags.BoolVar(&c.AllowUnauthenticatedClients, "no-verify-clients", c.AllowUnauthenticatedClients, "Do not require client certificate validation")
5353

5454
flags.BoolVar(&c.Authentication.Webhook.Enabled, "authentication-token-webhook", c.Authentication.Webhook.Enabled, ""+
5555
"Use the TokenReview API to determine authentication for bearer tokens.")

0 commit comments

Comments
 (0)