Skip to content

Commit

Permalink
Fix mismatched context and cluster names (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
superbrothers authored Nov 25, 2020
1 parent 8147a8f commit ac62d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/view-serviceaccount-kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func (o *ViewServiceaccountKubeconfigOptions) Run() error {
config := &clientcmdapi.Config{
CurrentContext: currentContext,
Clusters: map[string]*clientcmdapi.Cluster{
"cluster": {
cluster: {
Server: server,
CertificateAuthorityData: caCrt,
},
Expand All @@ -197,7 +197,7 @@ func (o *ViewServiceaccountKubeconfigOptions) Run() error {
},
},
Contexts: map[string]*clientcmdapi.Context{
"context": {
currentContext: {
Cluster: cluster,
AuthInfo: serviceaccount.GetName(),
Namespace: namespace,
Expand Down

0 comments on commit ac62d15

Please sign in to comment.