hyperkube

command
v0.0.0-...-5fb8a3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL