Skip to content

Commit

Permalink
use client.authentication.k8s.io/v1beta1 for upstream compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jun 19, 2022
1 parent 313c63a commit a84ff88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ var configHelperCmd = &cobra.Command{
} else if outputFormat == "yaml" {
encoder := yaml.NewEncoder(cmd.OutOrStdout())
err = encoder.Encode(output)
} else if outputFormat == "client.authentication.k8s.io/v1" {
} else if outputFormat == "client.authentication.k8s.io/v1beta1" {
outputv1 := &ExecCredential{
APIVersion: "client.authentication.k8s.io/v1",
APIVersion: "client.authentication.k8s.io/v1beta1",
Kind: "ExecCredential",
Status: ExecCredentialStatus{
Token: token.AccessToken,
Expand Down
2 changes: 1 addition & 1 deletion container/clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var clustersGetCredentialsCmd = &cobra.Command{
kubeConfig.AuthInfos[kName] = &clientcmdapi.AuthInfo{
Exec: &clientcmdapi.ExecConfig{
Command: "gke-gcloud-auth-plugin",
APIVersion: "client.authentication.k8s.io/v1",
APIVersion: "client.authentication.k8s.io/v1beta1",
InteractiveMode: clientcmdapi.NeverExecInteractiveMode,
},
}
Expand Down

0 comments on commit a84ff88

Please sign in to comment.