/images/touxiang.jpg

kubectl源码解析

kubectl源码阅读 版本 v1.16.6 kubectl命令的创建 kubernetes/cmd/kubectl/kubectl.go 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 func main() { rand.Seed(time.Now().UnixNano()) command := cmd.NewDefaultKubectlCommand() // TODO: once we switch everything over to Cobra commands, we can go back to calling // cliflag.InitFlags()