Registry / cloud / client-go

client-go

JSON →
library0.36.2gogounverified

Package clientgo is the official Go client for the Kubernetes API.

go get k8s.io/client-go
INSTALL
IMPORT
SIG · CLIENT-GO
C
client-go
cloudgov0.36.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kubernetes
k8s.io/client-go/kubernetes

Create a Kubernetes clientset using in-cluster configuration.

package main import ( "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" ) func main() { config, err := rest.InClusterConfig() if err != nil { panic(err) } clientset, err := kubernetes.NewForConfig(config) if err != nil { panic(err) } _ = clientset }
Debug
Known issues
breakingVersion compatibility: client-go versions must match the Kubernetes cluster version within one minor version.
fix
Use the same minor version as your cluster (e.g., client-go v0.36.x for Kubernetes 1.36).
affects: all
Upgrade
Version history
0.36.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
client-go — go get client-go · libregistry