import "k8s.io/kubernetes/cmd/kubeadm/app/cmd"
certs.go cmd.go completion.go config.go init.go join.go reset.go token.go version.go
func AddClusterConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.ClusterConfiguration, featureGatesString *string)
AddClusterConfigFlags adds cluster flags bound to the config to the specified flagset
func AddImagesCommonConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.ClusterConfiguration, cfgPath *string, featureGatesString *string)
AddImagesCommonConfigFlags adds the flags that configure kubeadm (and affect the images kubeadm will use)
func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.InitConfiguration)
AddInitConfigFlags adds init flags bound to the config to the specified flagset
AddInitOtherFlags adds init flags that are not bound to a configuration file to the given flagset Note: All flags that are not bound to the cfg object should be allowed in cmd/kubeadm/app/apis/kubeadm/validation/validation.go
AddResetFlags adds reset flags
GetSupportedShells returns a list of supported shells
NewKubeadmCommand returns cobra.Command to run kubeadm command
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error
PullControlPlaneImages pulls all images that the ImagesPull knows about
RunCompletion checks given arguments and executes command
RunConfigView gets the configuration persisted in the cluster
func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, initCfg *kubeadmapiv1beta2.InitConfiguration, printJoinCommand bool, certificateKey string, kubeConfigFile string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
RunDeleteTokens removes a bootstrap tokens from the server.
RunGenerateToken just generates a random token for the user
func RunListTokens(out io.Writer, errW io.Writer, client clientset.Interface, printer output.Printer) error
RunListTokens lists details on all existing bootstrap tokens on the server.
RunVersion provides the version information of kubeadm in format depending on arguments specified in cobra.Command.
type ImagesList struct {
// contains filtered or unexported fields
}
ImagesList defines the struct used for "kubeadm config images list"
func NewImagesList(cfgPath string, cfg *kubeadmapiv1beta2.ClusterConfiguration) (*ImagesList, error)
NewImagesList returns the underlying struct for the "kubeadm config images list" command
Run runs the images command and writes the result to the io.Writer passed in
type ImagesPull struct {
// contains filtered or unexported fields
}
ImagesPull is the struct used to hold information relating to image pulling
func NewImagesPull(runtime utilruntime.ContainerRuntime, images []string) *ImagesPull
NewImagesPull initializes and returns the `kubeadm config images pull` command
type Version struct { ClientVersion *apimachineryversion.Info `json:"clientVersion"` }
Version provides the version information of kubeadm.
Path | Synopsis |
---|---|
alpha | |
options | Package options provide a central point for defining flags for kubeadm cobra commands, no matter if hard coded commands or autogenerated command for phases. |
phases | |
phases/init | |
phases/join | |
phases/reset | |
phases/upgrade/node | |
phases/workflow | Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows. |
upgrade | |
util |
Package cmd imports 63 packages (graph) and is imported by 25 packages. Updated 2021-01-17. Refresh now. Tools for package owners.