You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/consul-dataplane/main.go
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,15 @@ var (
32
32
namespacestring
33
33
partitionstring
34
34
35
-
credentialTypestring
36
-
tokenstring
37
-
loginMethodstring
38
-
loginNamespacestring
39
-
loginPartitionstring
40
-
loginDatacenterstring
41
-
loginBearerstring
42
-
loginBearerPathstring
43
-
loginMetamap[string]string
35
+
credentialTypestring
36
+
tokenstring
37
+
loginAuthMethodstring
38
+
loginNamespacestring
39
+
loginPartitionstring
40
+
loginDatacenterstring
41
+
loginBearerTokenstring
42
+
loginBearerTokenPathstring
43
+
loginMetamap[string]string
44
44
45
45
useCentralTelemetryConfigbool
46
46
@@ -78,12 +78,12 @@ func init() {
78
78
79
79
flag.StringVar(&credentialType, "credential-type", "", "The type of credentials that will be used to authenticate with Consul servers (static or login).")
80
80
flag.StringVar(&token, "static-token", "", "The ACL token used to authenticate requests to Consul servers (when -credential-type is set to static).")
81
-
flag.StringVar(&loginMethod, "login-method", "", "The auth method that will be used to log in.")
81
+
flag.StringVar(&loginAuthMethod, "login-auth-method", "", "The auth method that will be used to log in.")
82
82
flag.StringVar(&loginNamespace, "login-namespace", "", "The Consul Enterprise namespace containing the auth method.")
83
83
flag.StringVar(&loginPartition, "login-partition", "", "The Consul Enterprise partition containing the auth method.")
84
84
flag.StringVar(&loginDatacenter, "login-datacenter", "", "The datacenter containing the auth method.")
85
-
flag.StringVar(&loginBearer, "login-bearer", "", "The bearer token that will be presented to the auth method.")
86
-
flag.StringVar(&loginBearerPath, "login-bearer-path", "", "The path to a file containing the bearer token that will be presented to the auth method.")
85
+
flag.StringVar(&loginBearerToken, "login-bearer-token", "", "The bearer token that will be presented to the auth method.")
86
+
flag.StringVar(&loginBearerTokenPath, "login-bearer-token-path", "", "The path to a file containing the bearer token that will be presented to the auth method.")
87
87
flag.Var((*FlagMapValue)(&loginMeta), "login-meta", "An arbitrary set of key/value pairs that will be attached to the ACL token (formatted as key=value, may be given multiple times).")
88
88
89
89
flag.BoolVar(&useCentralTelemetryConfig, "telemetry-use-central-config", true, "Controls whether the proxy will apply the central telemetry configuration.")
0 commit comments