grafana / xk6-kubernetes

Client extension for interacting with Kubernetes clusters from your k6 tests.
Apache License 2.0
64 stars 21 forks source link

Error authenticating to cloud (GCP) #50

Closed vincent-grafana closed 2 years ago

vincent-grafana commented 2 years ago

While running the basic list-pods script against a cluster in GCP, I encounter the following error:

ERRO[0000] no Auth Provider found for name "gcp"
        at file:///home/vw/dev/k6/scripts/list-pods.js:5:21(4)
        at native  executor=per-vu-iterations scenario=default source=stacktrace

From my understanding, the expected action is to read from the kubeconfig filepath provided (or take from the default path).

Is the default incorrect, or does the documentation need to be updated differently?

dgzlopes commented 2 years ago

Probably, related with this: https://github.com/kubernetes/client-go/issues/242#issuecomment-314642965 :eyes:

vincent-grafana commented 2 years ago

Thanks - sounds like we need to include the auth module?

Simliar to: https://github.com/kubernetes/client-go/blob/e121606b0d09b2e1c467183ee46217fa85a6b672/kubernetes/clientset.go#L35-Lundefined