You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using Kuttl 13 and it allowed me to use export KUBECONFIG to access my gke cluster.
However the latest kuttl is no longer able to use the kubeconfig generated by gcloud anymore.
logger.go:42: 00:39:24 | verify-test1-cluster/1- | Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
logger.go:42: 00:39:24 | verify-test1-cluster/1- | See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details
logger.go:42: 00:39:24 | verify-test1-cluster/1- | fatal error getting client: The gcp auth plugin has been removed.
logger.go:42: 00:39:24 | verify-test1-cluster/1- | Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
logger.go:42: 00:39:25 | verify-test1-cluster/1- | See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details
logger.go:42: 00:39:25 | verify-test1-cluster/1- | fatal error getting client: The gcp auth plugin has been removed.
logger.go:42: 00:39:25 | verify-test1-cluster/1- | Please use the "gke-gcloud-auth-plugin" kubectl/client-go credential plugin instead.
logger.go:42: 00:39:25 | verify-test1-cluster/1- | See https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke for further details
install the gcloud auth plugin:
gcloud components install gke-gcloud-auth-plugin
prepare to run kuttl on the kubeconfig
export KUBECONFIG=/tmp/my-gke-cluster-kubeconfig
# this is required for the new plugin
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
export PATH="${PATH}:/tmp/kubectlplugins"
kubectl kuttl assert kuttl-test-runner-mounted/suites/verify-test1-cluster/01-assert-target-cluster-01-objects.yaml.txt
You then get the errors i posted above.
I also tried putting the kubeconfig as a file argument to no avail as kuttl does not recognize --kubeconfig ${KUBECONFIG}
Environment:
Kubernetes version (use kubectl version): Client v1.25.0 / Server v1.24.8-gke.2000
I was using Kuttl 13 and it allowed me to use export KUBECONFIG to access my gke cluster.
However the latest kuttl is no longer able to use the kubeconfig generated by gcloud anymore.
install the gcloud auth plugin:
prepare to run kuttl on the kubeconfig
You then get the errors i posted above.
I also tried putting the kubeconfig as a file argument to no avail as kuttl does not recognize --kubeconfig ${KUBECONFIG}
Environment:
Kubernetes version (use
kubectl version
): Client v1.25.0 / Server v1.24.8-gke.2000KUTTL version (use
kubectl kuttl version
): KUTTL Version: version.Info{GitVersion:"0.15.0", GitCommit:"f6d64c9", BuildDate:"2023-01-03T21:32:35Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/amd64"}Cloud provider or hardware configuration: GCP
OS (e.g. from /etc/os-release): Chrome OS
Kernel (e.g.
uname -a
): 5.10.133+ initial project move from kudo into its own project #1 SMP Sat Sep 10 14:54:12 UTC 2022 x86_64 GNU/LinuxInstall tools:
Others:
The text was updated successfully, but these errors were encountered: