Skip to content

Commit

Permalink
Update pkg/clients/azure/azure.go
Browse files Browse the repository at this point in the history
Co-authored-by: Erhan Cagirici <[email protected]>
Signed-off-by: hbc <[email protected]>
  • Loading branch information
bcho and erhancagirici committed Jan 17, 2024
1 parent 046e36b commit a41be6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/clients/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func kubeloginTokenOptionsFromRESTConfig(rc *rest.Config) (*token.Options, error
// we are parsing serverID from here
// add other flags if new login methods are introduced
fs := pflag.NewFlagSet("kubelogin", pflag.ContinueOnError)
fs.ParseErrorsWhitelist = pflag.ParseErrorsWhitelist{UnknownFlags: true}
fs.StringVar(&opts.ServerID, kubeloginCLIFlagServerID, "", "Microsoft Entra (AAD) server application id")
err := fs.Parse(rc.ExecProvider.Args)
if err != nil {
Expand Down

0 comments on commit a41be6f

Please sign in to comment.