client-go
client-go copied to clipboard
Go client for Kubernetes.
The `tools/clientcmd/loader.go` (and potentially others) rely on the simple creation of a file to "lock" it for changes. This might work for most cases since there is not high performance...
Client-go has an indirect dependency in the github.com/dgrijalva/[email protected] package that has a github security advisory. That advisory is addressed in [email protected]. [github advisory for jwt-go = v0.11.24? Thanks!
Hi, I'm trying to make my code run in the cluster, and it worked with the default solution, by add `ClusterRole` to the `default/default` service account. But it failed when...
I am trying to use the event recorder from the tools/events package. ``` c.eventRecorder.Eventf(main, sec, corev1.EventTypeWarning, target.conditionReason, action, message) ``` where `main` and `sec` are pointers to existing resource types....
....... config, err := clientcmd.BuildConfigFromFlags("", *kubeconfig) fmt.Println(config) ...... When the above code is executed, an error occurs: sanitizedTLSClientConfig not declared by package rest how should i solve it,Thank u
I'm trying to get all the resources for a given Api Group. I'm using the method ServerGroupsAndResource from the client. It returns a list of APIResourceList containing TypeMeta, GroupVersion and...
res, err := clientset.CoreV1().Nodes().Create(context.Background(), node, metav1.CreateOptions{}) How do I configure this node?
Hi, How can we add PersistentVolumeClaim and ClaimName in the deployment Go Script with client-go There is no Document or example for this ## My Go Script: ``` package main...
# Unable to set TaintApplyConfiguration in NodeApplyConfiguration ## Modules - k8s.io/api `v0.23.5` - k8s.io/client-go `v0.23.5` - k8s.io/apimachinery `v0.23.5` ## Problem I have been attempting to apply node taints via setting...
Hi I created PVC and PV using client-go. Creating works properly. ``` func createPVC(namespace string) { test2, err := clientset.CoreV1().PersistentVolumeClaims(namespace).Create(context.Background(), &v1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: "mytestpvc", }, Spec: v1.PersistentVolumeClaimSpec{ AccessModes: []v1.PersistentVolumeAccessMode{...