Attend a sig-cli meeting
The best way to get started is to attend sig-cli meetings. The bug scrub is a great place to pick up an issue to work on.
Checking out the code
Install the latest version of go
Get a copy of the code
Fork and clone the kubernetes repository
git clone firstname.lastname@example.org/USER/kubernetes cd kubernetes
Build the binary
Build the binary using
cd cmd/kubectl go build -v ./kubectl version
Edit the code
The kubectl code is under
- Libraries are under
- Command implementations are under
Learning about libraries
Kubectl uses a number of common libraries
- cobra – a golang framework for CLIs
- client-go – libraries for talking to the Kubernetes apiserver
- api – Kubernetes types
- apimachinery – Kubernetes apimachinery libraries
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.