package cmd
import "k8s.io/kubernetes/cmd/kubeadm/app/cmd"
Index ¶
- func AddClusterConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.ClusterConfiguration, featureGatesString *string)
- func AddImagesCommonConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.ClusterConfiguration, cfgPath *string, featureGatesString *string)
- func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.InitConfiguration)
- func AddInitOtherFlags(flagSet *flag.FlagSet, initOptions *initOptions)
- func AddResetFlags(flagSet *flag.FlagSet, resetOptions *resetOptions)
- func GetSupportedShells() []string
- func NewKubeadmCommand(in io.Reader, out, err io.Writer) *cobra.Command
- func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error
- func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error
- func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, initCfg *kubeadmapiv1.InitConfiguration, printJoinCommand bool, certificateKey string, kubeConfigFile string) error
- func RunDeleteTokens(out io.Writer, client clientset.Interface, tokenIDsOrTokens []string) error
- func RunGenerateToken(out io.Writer) error
- func RunListTokens(out io.Writer, errW io.Writer, client clientset.Interface, printer output.Printer) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- type ImagesList
- func NewImagesList(cfgPath string, cfg *kubeadmapiv1.ClusterConfiguration) (*ImagesList, error)
- func (i *ImagesList) Run(out io.Writer, printer output.Printer) error
- type ImagesPull
- type Version
Functions ¶
func AddClusterConfigFlags ¶
func AddClusterConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.ClusterConfiguration, featureGatesString *string)
AddClusterConfigFlags adds cluster flags bound to the config to the specified flagset
func AddImagesCommonConfigFlags ¶
func AddImagesCommonConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.ClusterConfiguration, cfgPath *string, featureGatesString *string)
AddImagesCommonConfigFlags adds the flags that configure kubeadm (and affect the images kubeadm will use)
func AddInitConfigFlags ¶
func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1.InitConfiguration)
AddInitConfigFlags adds init flags bound to the config to the specified flagset
func AddInitOtherFlags ¶
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
func AddResetFlags ¶
AddResetFlags adds reset flags
func GetSupportedShells ¶
func GetSupportedShells() []string
GetSupportedShells returns a list of supported shells
func NewKubeadmCommand ¶
NewKubeadmCommand returns cobra.Command to run kubeadm command
func PullControlPlaneImages ¶
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error
PullControlPlaneImages pulls all images that the ImagesPull knows about
func RunCompletion ¶
RunCompletion checks given arguments and executes command
func RunCreateToken ¶
func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, initCfg *kubeadmapiv1.InitConfiguration, printJoinCommand bool, certificateKey string, kubeConfigFile string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
func RunDeleteTokens ¶
RunDeleteTokens removes a bootstrap tokens from the server.
func RunGenerateToken ¶
RunGenerateToken just generates a random token for the user
func RunListTokens ¶
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.
func RunVersion ¶
RunVersion provides the version information of kubeadm in format depending on arguments specified in cobra.Command.
Types ¶
type ImagesList ¶
type ImagesList struct {
// contains filtered or unexported fields
}
ImagesList defines the struct used for "kubeadm config images list"
func NewImagesList ¶
func NewImagesList(cfgPath string, cfg *kubeadmapiv1.ClusterConfiguration) (*ImagesList, error)
NewImagesList returns the underlying struct for the "kubeadm config images list" command
func (*ImagesList) Run ¶
Run runs the images command and writes the result to the io.Writer passed in
type ImagesPull ¶
type ImagesPull struct {
// contains filtered or unexported fields
}
ImagesPull is the struct used to hold information relating to image pulling
func NewImagesPull ¶
func NewImagesPull(runtime utilruntime.ContainerRuntime, images []string) *ImagesPull
NewImagesPull initializes and returns the `kubeadm config images pull` command
type Version ¶
type Version struct { ClientVersion *apimachineryversion.Info `json:"clientVersion"` }
Version provides the version information of kubeadm.
Source Files ¶
certs.go cmd.go completion.go config.go init.go join.go kubeconfig.go reset.go token.go version.go
Directories ¶
Path | Synopsis |
---|---|
cmd/kubeadm/app/cmd/alpha | |
cmd/kubeadm/app/cmd/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. |
cmd/kubeadm/app/cmd/phases | |
cmd/kubeadm/app/cmd/phases/init | |
cmd/kubeadm/app/cmd/phases/join | |
cmd/kubeadm/app/cmd/phases/reset | |
cmd/kubeadm/app/cmd/phases/upgrade | |
cmd/kubeadm/app/cmd/phases/upgrade/node | |
cmd/kubeadm/app/cmd/phases/workflow | Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows. |
cmd/kubeadm/app/cmd/upgrade | |
cmd/kubeadm/app/cmd/util |
- Version
- v1.22.14
- Published
- Sep 14, 2022
- Platform
- js/wasm
- Imports
- 65 packages
- Last checked
- 17 minutes ago –
Tools for package owners.