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
@@ -36,15 +36,15 @@ var (
36
36
namespacestring
37
37
partitionstring
38
38
39
-
credentialTypestring
40
-
tokenstring
41
-
loginMethodstring
42
-
loginNamespacestring
43
-
loginPartitionstring
44
-
loginDatacenterstring
45
-
loginBearerstring
46
-
loginBearerPathstring
47
-
loginMetamap[string]string
39
+
credentialTypestring
40
+
tokenstring
41
+
loginAuthMethodstring
42
+
loginNamespacestring
43
+
loginPartitionstring
44
+
loginDatacenterstring
45
+
loginBearerTokenstring
46
+
loginBearerTokenPathstring
47
+
loginMetamap[string]string
48
48
49
49
useCentralTelemetryConfigbool
50
50
@@ -84,12 +84,12 @@ func init() {
84
84
85
85
flag.StringVar(&credentialType, "credential-type", "", "The type of credentials that will be used to authenticate with Consul servers (static or login).")
86
86
flag.StringVar(&token, "static-token", "", "The ACL token used to authenticate requests to Consul servers (when -credential-type is set to static).")
87
-
flag.StringVar(&loginMethod, "login-method", "", "The auth method that will be used to log in.")
87
+
flag.StringVar(&loginAuthMethod, "login-auth-method", "", "The auth method that will be used to log in.")
88
88
flag.StringVar(&loginNamespace, "login-namespace", "", "The Consul Enterprise namespace containing the auth method.")
89
89
flag.StringVar(&loginPartition, "login-partition", "", "The Consul Enterprise partition containing the auth method.")
90
90
flag.StringVar(&loginDatacenter, "login-datacenter", "", "The datacenter containing the auth method.")
91
-
flag.StringVar(&loginBearer, "login-bearer", "", "The bearer token that will be presented to the auth method.")
92
-
flag.StringVar(&loginBearerPath, "login-bearer-path", "", "The path to a file containing the bearer token that will be presented to the auth method.")
91
+
flag.StringVar(&loginBearerToken, "login-bearer-token", "", "The bearer token that will be presented to the auth method.")
92
+
flag.StringVar(&loginBearerTokenPath, "login-bearer-token-path", "", "The path to a file containing the bearer token that will be presented to the auth method.")
93
93
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).")
94
94
95
95
flag.BoolVar(&useCentralTelemetryConfig, "telemetry-use-central-config", true, "Controls whether the proxy will apply the central telemetry configuration.")
0 commit comments