Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kuttl 15 does not support gcp new auth plugin #463

Open
shanproofpoint opened this issue Mar 1, 2023 · 0 comments
Open

Kuttl 15 does not support gcp new auth plugin #463

shanproofpoint opened this issue Mar 1, 2023 · 0 comments

Comments

@shanproofpoint
Copy link

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

  • KUTTL 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/Linux

  • Install tools:

  • Others:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant