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: pkg/sidecar/sidecar.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ const (
55
55
flagTLSCert="tls-cert"
56
56
flagTLSKey="tls-key"
57
57
flagVersion="version"
58
+
flagAudience="audience"
58
59
59
60
// tlsCertEnvVar is an environment variable that specifies the path to tls certificate file.
60
61
tlsCertEnvVar="TLS_CERT_PATH"
@@ -130,6 +131,7 @@ type sidecarFlagSet struct {
130
131
showVersion*bool
131
132
tlsCert*string
132
133
tlsKey*string
134
+
audience*string
133
135
}
134
136
135
137
varsidecarFlagSetErrorHandling flag.ErrorHandling=flag.ExitOnError// UT interception point.
@@ -149,6 +151,7 @@ func newSidecarFlagSet(name, version string) *sidecarFlagSet {
149
151
s.grpcPort=s.Int(flagGRPCPort, defaultGRPCPort, "GRPC SnapshotMetadata service port number")
150
152
s.tlsCert=s.String(flagTLSCert, os.Getenv(tlsCertEnvVar), "Path to the TLS certificate file. Can also be set with the environment variable "+tlsCertEnvVar+".")
151
153
s.tlsKey=s.String(flagTLSKey, os.Getenv(tlsKeyEnvVar), "Path to the TLS private key file. Can also be set with the environment variable "+tlsKeyEnvVar+".")
154
+
s.audience=s.String(flagAudience, "", "Audience string used for authentication.")
152
155
153
156
s.maxStreamingDurMin=s.Int(flagMaxStreamingDurationMin, defaultMaxStreamingDurationMin, "The maximum duration in minutes for any individual streaming session")
154
157
@@ -193,6 +196,7 @@ func (s *sidecarFlagSet) runtimeArgsFromFlags() runtime.Args {
0 commit comments