Documentation
¶
Overview ¶
This is the entry point for our multicall Kubernetes binary. It can act as any of the Kubernetes components we use depending on its first argument. This saves us a bunch of duplicated code and thus system partition size as a large amount of library code is shared between all of the Kubernetes components.
As this is not intended by the K8s developers the Cobra setup is unusual in that even the command structs are only created on-demand and not registered with AddCommand. This is done as Kubernetes performs one-off global setup inside their NewXYZCommand functions, for example for signal handling and their global registries.
Click to show internal directories.
Click to hide internal directories.