client-go
client-go copied to clipboard
Go client for Kubernetes.
I am building a proxy between ssh and `kubectl exec` using the `remotecommand` library. One of the neat things I'd like to do is deduce what shell to drop you...
Bring the compatibility matrix up-to-date to include version 1.29 and 1.30 of Kubernetes. Fixes #1353
The compatibility-matrix needs to be updated to include versions 1.29 and 1.30 in README.md. https://github.com/kubernetes/client-go#compatibility-matrix
When using `_, _, w, _ := watch.NewIndexerInformerWatcher()`, `w.ResultChan()` is not being closed at the end, after calling `w.Stop()`. So a range loop like this will never end. ```go for...
I'm trying to filter a list of pods based on the node they're on: ``` podList, err := clientset.CoreV1().Pods("").List(context.Background(), metav1.ListOptions{ FieldSelector: fmt.Sprintf("spec.nodeName=%s", nodeName), }) ``` but the FieldSelector doesn't appear...
../../../pkg/mod/k8s.io/[email protected]/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData
When creating a pod: - with server-side apply - with an empty affinity ```go pod := coreac.Pod(name, ns). WithSpec( coreac.PodSpec(). coreac.WithAffinity(coreac.Affinity()) // notice the empty affinity value here // other...
client-go Version: v0.28.2 k8s version: v1.28.3 log: W0408 01:50:20.316882 7 reflector.go:535] pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: failed to list *v1.Pod: Get "https://10.254.0.1:443/%00api/v1/pods?fieldSelector=spec.nodeName%3Dminion-2&resourceVersion=12299792": stream error: stream ID 137; PROTOCOL_ERROR; invalid header field name "\x01\x00\x00\x00\x04\x00\x00\x00" E0408...
## TLDR When using server side apply with ExtractPod, a controller may recreate a resource that was deleted by attempting to remove a finalizer. ## Context I have a controller...
Hi, We are facing sporadic "Unauthorized" issues in k8s go-client creation: `pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch : the server has asked for the client to provide credentials (get )` `log: pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:229:...