client-go
client-go copied to clipboard
Go client for Kubernetes.
I am trying to patch custom node condition types, my below code is not working or patching although error is nil, also I have tested by running curl against the...
i have a questions,i want to create multiple containers in a deployemnt template ` "spec": map[string]interface{}{ "containers": []map[string]interface{}{ { "name": p.ContainerName, "image": p.ContainerImage, "ports": []map[string]interface{}{ { "name": "http", "protocol": "TCP",...
**What type of PR is this?** /kind bug **What this PR does / why we need it:** Fixes [#110642](https://github.com/kubernetes/kubernetes/issues/110642) **Which issue(s) this PR fixes:** [delaying queue](https://github.com/kubernetes/client-go/blob/master/util/workqueue/delaying_queue.go) suppresses duplicates within the...
**What type of PR is this?** /kind feature **What this PR does / why we need it:** Fixes [#108322](https://github.com/kubernetes/kubernetes/issues/108322) **Which issue(s) this PR fixes:** There is no direct way to...
How can use namespaced_custom such as https://github.com/kubernetes-client/python/blob/master/examples/namespaced_custom_object.py with client-go?
IngressClass.networking.k8s.io \"name\" is invalid: spec.controller: Required value **** ``` apiVersion: networking.k8s.io/v1 kind: Ingress metadata: labels: bpp: name name: name namespace: testyaml spec: defaultBackend: service: name: name port: number: 10215 ingressClassName:...
The fake.RESTCleint returns a default rest client. It seems no way to inject a fake rest client in the fake of the clientset. For example, I found `fake.CoreV1().RESTClient().Get().Resource("nodes").Name(nodeName).SubResource("proxy").Suffix("stats/summary")` can not...
To use `kubectl` with merged config, below two commands can be used: `KUBECONFIG=~/.kube/config:/path/to/another/config.yml kubectl config view --flatten > ~/.kube/config-new.yaml` and then `cp ~/.kube/config-new.yaml ~/.kube/config` ------ `~/.kube/config` will have merged config...
Please refer to the command and its output below: ``` go get -u ./... # k8s.io/client-go/applyconfigurations/meta/v1 /go/pkg/mod/k8s.io/[email protected]/applyconfigurations/meta/v1/unstructured.go:64:37: cannot use doc (type *"github.com/googleapis/gnostic/openapiv2".Document) as type *"github.com/google/gnostic/openapiv2".Document in argument to "k8s.io/kube-openapi/pkg/util/proto".NewOpenAPIData ```
Expected: gateway-> gateways Got: gateway-> gatewaies Is there any way to affect this mistaken guessing?