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

Commit 222ac08

Browse files
authored
Merge pull request #46 from khagerma/master
Changed Flag Handling so AllowUnauthenticatedClients Respects Defaults
2 parents bfe7287 + 6b48b7b commit 222ac08

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)