Registry / cli / kubectl

kubectl

JSON →
library0.36.2gogounverified

Package kubectl provides the Go client library for interacting with Kubernetes clusters via the kubectl command-line tool.

go get k8s.io/kubectl
INSTALL
IMPORT
SIG · KUBECTL
K
kubectl
cligov0.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.

kubectl
k8s.io/kubectl

Import the kubectl package for building Kubernetes CLI tools.

package main import ( "fmt" "k8s.io/kubectl/pkg/cmd" ) func main() { fmt.Println("kubectl package imported") }
Debug
Known issues
gotchaThe kubectl package is large and has many dependencies; consider using client-go for simpler interactions.
fix
Use k8s.io/client-go for programmatic Kubernetes API access instead of kubectl internals.
affects: all
Upgrade
Version history
0.36.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
20
Resources
kubectl — go get kubectl · libregistry