Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit d30a52a

Browse files
committed
Add clarification to passthrough flags
Signed-off-by: JoshVanL <[email protected]>
1 parent c3b84bd commit d30a52a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

cmd/options/options.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ type TokenPassthroughOptions struct {
1515
}
1616

1717
func (t *TokenPassthroughOptions) AddFlags(fs *pflag.FlagSet) {
18-
fs.StringSliceVar(&t.Audiences, "token-audiences", t.Audiences, ""+
18+
fs.StringSliceVar(&t.Audiences, "token-passthrough-audiences", t.Audiences, ""+
1919
"List of the identifiers that the resource server presented with the token "+
20-
"identifies as. Audience-aware token authenticators will verify that the token "+
21-
"was intended for at least one of the audiences in this list. If no audiences "+
22-
"are provided, the audience will default to the audience of the Kubernetes "+
20+
"identifies as. The resoure server will verify that non OIDC tokens are intended "+
21+
"for at least one of the audiences in this list. If no audiences are "+
22+
"provided, the audience will default to the audience of the Kubernetes "+
2323
"apiserver.")
2424

2525
fs.BoolVar(&t.Enabled, "token-passthrough", t.Enabled, ""+
@@ -52,7 +52,8 @@ func (o *OIDCAuthenticationOptions) Validate() error {
5252
func (o *OIDCAuthenticationOptions) AddFlags(fs *pflag.FlagSet) {
5353
fs.StringSliceVar(&o.APIAudiences, "api-audiences", o.APIAudiences, ""+
5454
"Identifiers of the API. This can be used as an additional list of "+
55-
"identifiers that exist in the target audiences of requests.")
55+
"identifiers that exist in the target audiences of requests when "+
56+
"authenticating with OIDC.")
5657

5758
fs.StringVar(&o.IssuerURL, "oidc-issuer-url", o.IssuerURL, ""+
5859
"The URL of the OpenID issuer, only HTTPS scheme will be accepted.")

0 commit comments

Comments
 (0)