client-go
client-go copied to clipboard
Go client for Kubernetes.
getting credentials: decoding stdout: no kind "**ExecCredential**" is registered for version "client.authentication.k8s.io/v1alpha1" in scheme "pkg/runtime/scheme.go:100 error **kubectl version** command is giving below result `Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean",...
Need some help. I am trying to deploy a Go rest app that can provide list of active pods for a specific deployment/namespace. I am using pod informer and lister...
Hello, I'm trying to use new leader election type "LeaseLock". How I can say to kubernetes, to do not route traffic to non leader pod, there is no examples, how...
version k8s.io/client-go v0.28.2 and v0.27.x go version - Tried on 1.19 and 1.20 Error ``` go: downloading github.com/emicklei/go-restful/v3 v3.9.0 /go/pkg/mod/k8s.io/[email protected]/plugin/pkg/client/auth/exec/exec.go:48:2: //go:build comment without // +build comment /go/pkg/mod/sigs.k8s.io/[email protected]/json.go:24:2: //go:build comment without...
Sometimes, the status of the job will always be terminal. So I expect to detect that if a job is in the terminal state for a long time, it will...
#### version k8s.io/client-go v0.27.4 apiserver:v1.20.4 #### code segment ``` if namespaced { dyObj, err = cli.Dynamic.Resource(gvr).Namespace(dyObj.GetNamespace()).Apply(ctx, dyObj.GetName(), dyObj, metav1.ApplyOptions{FieldManager: knightmeta.AppName, Force: true, DryRun: cli.DryRun(dryRun)}) //_, err = cli.Dynamic.Resource(gvr).Namespace(dyObj.GetNamespace()).Patch(ctx, dyObj.GetName(), types.ApplyPatchType,...
When a `KUBECONFIG` is set explicitly to a external cluster, the client still defaults to the namespace mounted in `/run/secrets/kubernetes.io/serviceaccount`. This means the same kubeconfig setting/file will behave differently depending...
goroutine 866161 [running]: k8s.io/apimachinery/pkg/util/runtime.logPanic(0x2560120, 0xc00ec77ae8) /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:74 +0x95 k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0) /go/pkg/mod/k8s.io/[email protected]/pkg/util/runtime/runtime.go:48 +0x86 panic(0x2560120, 0xc00ec77ae8) /usr/local/go/src/runtime/panic.go:965 +0x1b9 io.copyBuffer(0x7fd14169f4b8, 0xc00e7b8f00, 0x2a91c60, 0xc00e907c10, 0xc00ed90000, 0x8000, 0x8000, 0xc014eff4d8, 0xc002c69f60, 0x494937) /usr/local/go/src/io/io.go:425 +0x3e5 io.Copy(...) /usr/local/go/src/io/io.go:382...
We are getting below errors and have tried to upgrade the AKS cluster to the latest version i.e., 1.26.6 if that helps in fixing the issue to match client and...
There is a part of my code where I use `*dynamic.DynamicClient` client with `List` resources by requested parameters: ``` start := time.Now() apps, err := g.k8sClient. Resource(appGVR). Namespace(g.cfg.KubeApi.MetricConfig.Namespace). List(context.TODO(), metav1.ListOptions{...