Closed ucguy4u closed 4 months ago
Hi, Do you have any solution for this issue?
For now I have downgraded the helm version.
Thanks @ucguy4u for your advice. Degrading k8s.io/client-go
from v0.26.0
to v0.25.5
seems working well.
Downgrading seems like a temporary fix, is there any long term solution?
Hey eahrend I skipped the authentication using ADC. I am running application inside the GKE container and by default it uses default service account.
Yeah, I'm trying to run my script from a GCF
Downgrading seems like a temporary fix, is there any long term solution?
Yeah.. need something stable fix for it.
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Not sure if this was already resolved, but I found a solution after digging around a bit.
gcloud
and gke-gcloud-auth-plugin
in the environment this code is running in, by following the instructions here: https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke(For example, I run my client code in a container, so I just added a script to my Dockerfile to set this up.)
Provide your GCP service account JSON to the environment this code runs in and run gcloud auth activate-service-account --keyfile=<path>
Update your code as follows:
// --snip--
// GCP specific configation; use cloud platform scope.
ret.AuthInfos[name] = &api.AuthInfo{
Exec: &api.ExecConfig{
APIVersion: "client.authentication.k8s.io/v1beta1",
Command: "gke-gcloud-auth-plugin",
InstallHint: "Install gke-gcloud-auth-plugin for use with kubectl by following https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke",
InteractiveMode: clientcmdapi.NeverExecInteractiveMode,
ProvideClusterInfo: true,
}
}
// --snip--
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
I am getting following error
Code snippet
Calling function from main function :
It is not working with
k8s.io/client-go v0.26.0
It was working fine with if I use 'go get k8s.io/client-go/tools/clientcmd@v0.25.5' When i try with downgrading the version, Helm"helm.sh/helm/v3/pkg/action" "helm.sh/helm/v3/pkg/cli"
packages are upgrading the from v0.25.5 to v0.26.0: go get k8s.io/client-go/tools/clientcmd@v0.25.5 go get k8s.io/cloud-provider-gcp/pkg/clientauthplugin/gcp@bb1acae5826dc877953d4854faf414e860db2efa
I want to connect to GKE using Application Default Credentials (ADC) and fetch the k8s resources and installed helm releases.