diff --git a/config/config_helper.go b/config/config_helper.go index f5471f0..5b02611 100644 --- a/config/config_helper.go +++ b/config/config_helper.go @@ -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, diff --git a/container/clusters.go b/container/clusters.go index cf97a5c..760d857 100644 --- a/container/clusters.go +++ b/container/clusters.go @@ -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, }, }