Skip to content

Commit

Permalink
Also set haveUserInfo=true in case --user was provided in "kops expor…
Browse files Browse the repository at this point in the history
…t kubecfg"

Without setting it to true, --user is completely ignored.
  • Loading branch information
codablock authored and Ole Markus With committed Jun 19, 2021
1 parent c4e9270 commit ac18a07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kubeconfig/kubecfg_builder.go
Expand Up @@ -163,6 +163,7 @@ func (b *KubeconfigBuilder) WriteKubecfg(configAccess clientcmd.ConfigAccess) er
if config.AuthInfos[b.User] == nil {
return fmt.Errorf("could not find user %q", b.User)
}
haveUserInfo = true
}

// If we have a bearer token, also create a credential entry with basic auth
Expand Down

0 comments on commit ac18a07

Please sign in to comment.