Registry / cloud / giantswarm-k8sclient-v4

giantswarm-k8sclient-v4

JSON →
library4.1.0gogounverified

A Kubernetes client library for Giant Swarm, providing simplified access to Kubernetes resources.

go get github.com/giantswarm/k8sclient/v4
INSTALL
IMPORT
SIG · GIANTSWARM-K8SCLIE
G
giantswarm-k8sclient-v4
cloudgov4.1.0
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.

k8sclient
github.com/giantswarm/k8sclient/v4

Create a Kubernetes client and list pods in the default namespace.

package main import ( "context" "fmt" "github.com/giantswarm/k8sclient/v4" ) func main() { client, err := k8sclient.New(k8sclient.ClientsConfig{}) if err != nil { panic(err) } pods, err := client.K8sClient().CoreV1().Pods("default").List(context.Background(), metav1.ListOptions{}) if err != nil { panic(err) } fmt.Println(len(pods.Items)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
giantswarm-k8sclient-v4 — go get giantswarm-k8sclient-v4 · libregistry