@@ -15,11 +15,11 @@ type TokenPassthroughOptions struct {
15
15
}
16
16
17
17
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 , "" +
19
19
"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 " +
23
23
"apiserver." )
24
24
25
25
fs .BoolVar (& t .Enabled , "token-passthrough" , t .Enabled , "" +
@@ -52,7 +52,8 @@ func (o *OIDCAuthenticationOptions) Validate() error {
52
52
func (o * OIDCAuthenticationOptions ) AddFlags (fs * pflag.FlagSet ) {
53
53
fs .StringSliceVar (& o .APIAudiences , "api-audiences" , o .APIAudiences , "" +
54
54
"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." )
56
57
57
58
fs .StringVar (& o .IssuerURL , "oidc-issuer-url" , o .IssuerURL , "" +
58
59
"The URL of the OpenID issuer, only HTTPS scheme will be accepted." )
0 commit comments