client-go
client-go copied to clipboard
Go client for Kubernetes.
Fixed the broken link: Service Account Tokens Replaced the link `https://kubernetes.io/docs/admin/authentication/#service-account-tokens` with `https://kubernetes.io/docs/reference/access-authn-authz/authentication/#service-account-tokens`
In the `tools/cache` package `reflector.go`, I found that the WatchErrorHandler in the reflector seems to be unable to be directly customized without using the open form. When defining Reflector, we...
The [tools/leaderelection/resourcelock](https://github.com/kubernetes/client-go/tree/master/tools/leaderelection/resourcelock) package `ResourceLockConfig` expects an [`EventRecorder`](https://github.com/kubernetes/client-go/blob/release-1.27/tools/leaderelection/resourcelock/interface.go#L125) not compatible with the new events.k8s.io/v1 [`EventRecorder`](https://github.com/kubernetes/client-go/blob/release-1.27/tools/events/interfaces.go#L27). Instead it uses the old core/v1 [`EventRecorder`](https://github.com/kubernetes/client-go/blob/release-1.27/tools/record/event.go#L92) interface. ¿Is it possible to use the new API...
The [FakeRecorder](https://github.com/kubernetes/client-go/blob/master/tools/record/fake.go) for events has some slight gaps which can make it difficult to test. - The output is an unstructured string, which means you must use exact match, `strings.Contains`...
It would be useful [to have linters assist in discovering use of deprecated api versions](https://staticcheck.dev/docs/checks/#SA1019) before they are eventually removed from client-go. For example PDBs graduated to `policy/v1` in [k8s...
Hi, while using https://pkg.go.dev/k8s.io/client-go/tools/leaderelection/resourcelock#ResourceLockConfig there is no possibility to manage annotations/labels on `lease` object. Would like to have possibility to do so.
This is basically a reopen from #541 because I did not see why @shsjshentao closed this in the first place. After listing / getting resources with client-go (tested with Deployments,...
I have a controller that is build with Kubebuilder and uses client-go for watching Secrets and ConfigMaps. It has been in use for multiple years. However, it has recently started...
This is a request to reopen the existing [issue](https://github.com/kubernetes/client-go/issues/843#issue-675652955) for further discussion. The issue pertains to the need for periodic resync in the work process of informers. > The work...
I want to know whether there are unhandled events of each event handler. Is there any possible way to count the length of `processorListener.pendingNotifications`, without hacking the client-go libary. ```golang...