diff --git a/pkg/clients/azure/azure.go b/pkg/clients/azure/azure.go index 3396dc8..7d7c5c6 100644 --- a/pkg/clients/azure/azure.go +++ b/pkg/clients/azure/azure.go @@ -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 {