Intro: CLI SIG
summary
Overview of kubectl internals and how to contribute: entry point lives in kubernetes/cmd/kubectl, commands live under pkg/kubectl/cmd, and the code follows a Cobra-based command pattern with per-command option structs and a complete/validate/run lifecycle so unit tests can inject IO streams. Covers CLI runtime helpers (print flags, resource builder), krew and plugin flow, server-side work like server-side printing and alpha server-side apply, test layers (unit, bash test-cmd, and Ginkgo e2e) with most tests running on every PR.
AI-written summary · about
chapters (21)
- 0:00Intro
- 1:03What we do
- 2:38Structure
- 3:37Initiatives
- 6:57Announcements
- 10:15Keep Commands
- 12:01Command Directory
- 13:02Get
- 15:10Option Structures
- 18:24New Command
- 20:30Validate
- 23:57Unit tests
- 26:05Help us improve
- 26:25Test framework
- 28:07Invoked tests
- 29:23Running unit tests
- 29:52Naming tests
- 30:14Setting up tests
- 31:14Running particular tests
- 31:41E2E test
- 32:06Scaling commands
related talks
17mSIG CLI: Intro and Updates
01h 30mEverything You Always Wanted to Know About SIG-CLI but Were Afraid to Ask
21mSIG CLI Intro and Updates
39mSIG CLI Intro - Phil Wittrock & Mengqi Yu, Google
36mKubernetes SIG CLI: Intro and Updates
25mKubernetes SIG CLI: Intro and Updates
38mSIG CLI Deep Dive
32mFrom User To Contributor: A Quick Guide To Kubectl & Kustomize
