Documentation ¶
Index ¶
- func AddClusterConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.ClusterConfiguration, ...)
- func AddImagesCommonConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.ClusterConfiguration, ...)
- func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.InitConfiguration)
- func AddInitOtherFlags(flagSet *flag.FlagSet, initOptions *initOptions)
- func AddResetFlags(flagSet *flag.FlagSet, resetOptions *resetOptions)
- func GetSupportedShells() []string
- func NewCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command
- func NewCmdConfig(out io.Writer) *cobra.Command
- func NewCmdConfigImages(out io.Writer) *cobra.Command
- func NewCmdConfigImagesList(out io.Writer, mockK8sVersion *string) *cobra.Command
- func NewCmdConfigImagesPull() *cobra.Command
- func NewCmdConfigMigrate(out io.Writer) *cobra.Command
- func NewCmdConfigPrint(out io.Writer) *cobra.Command
- func NewCmdConfigPrintInitDefaults(out io.Writer) *cobra.Command
- func NewCmdConfigPrintJoinDefaults(out io.Writer) *cobra.Command
- func NewCmdConfigUpload(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigUploadFromFile(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigUploadFromFlags(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdInit(out io.Writer, initOptions *initOptions) *cobra.Command
- func NewCmdJoin(out io.Writer, joinOptions *joinOptions) *cobra.Command
- func NewCmdReset(in io.Reader, out io.Writer, resetOptions *resetOptions) *cobra.Command
- func NewCmdToken(out io.Writer, errW io.Writer) *cobra.Command
- func NewCmdTokenGenerate(out io.Writer) *cobra.Command
- func NewCmdVersion(out io.Writer) *cobra.Command
- 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 RunConfigView(out io.Writer, client clientset.Interface) error
- func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath 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) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- type ImagesList
- type ImagesPull
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddClusterConfigFlags ¶ added in v1.15.0
func AddClusterConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.ClusterConfiguration, featureGatesString *string)
AddClusterConfigFlags adds cluster flags bound to the config to the specified flagset
func AddImagesCommonConfigFlags ¶ added in v1.11.0
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 ¶ added in v1.8.0
func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1beta2.InitConfiguration)
AddInitConfigFlags adds init flags bound to the config to the specified flagset
func AddInitOtherFlags ¶ added in v1.8.0
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 ¶ added in v1.15.0
AddResetFlags adds reset flags
func GetSupportedShells ¶ added in v1.11.0
func GetSupportedShells() []string
GetSupportedShells returns a list of supported shells
func NewCmdCompletion ¶ added in v1.6.0
NewCmdCompletion returns the "kubeadm completion" command
func NewCmdConfig ¶ added in v1.8.0
NewCmdConfig returns cobra.Command for "kubeadm config" command
func NewCmdConfigImages ¶ added in v1.11.0
NewCmdConfigImages returns the "kubeadm config images" command
func NewCmdConfigImagesList ¶ added in v1.11.0
NewCmdConfigImagesList returns the "kubeadm config images list" command
func NewCmdConfigImagesPull ¶ added in v1.11.0
NewCmdConfigImagesPull returns the `kubeadm config images pull` command
func NewCmdConfigMigrate ¶ added in v1.11.0
NewCmdConfigMigrate returns cobra.Command for "kubeadm config migrate" command
func NewCmdConfigPrint ¶ added in v1.13.0
NewCmdConfigPrint returns cobra.Command for "kubeadm config print" command
func NewCmdConfigPrintInitDefaults ¶ added in v1.13.0
NewCmdConfigPrintInitDefaults returns cobra.Command for "kubeadm config print init-defaults" command
func NewCmdConfigPrintJoinDefaults ¶ added in v1.13.0
NewCmdConfigPrintJoinDefaults returns cobra.Command for "kubeadm config print join-defaults" command
func NewCmdConfigUpload ¶ added in v1.8.0
NewCmdConfigUpload (Deprecated) returns cobra.Command for "kubeadm config upload" command Deprecated: please see kubeadm init phase upload-config
func NewCmdConfigUploadFromFile ¶ added in v1.8.0
NewCmdConfigUploadFromFile verifies given Kubernetes config file and returns cobra.Command for "kubeadm config upload from-file" command Deprecated: please see kubeadm init phase upload-config
func NewCmdConfigUploadFromFlags ¶ added in v1.8.0
NewCmdConfigUploadFromFlags returns cobra.Command for "kubeadm config upload from-flags" command Deprecated: please see kubeadm init phase upload-config
func NewCmdConfigView ¶ added in v1.8.0
NewCmdConfigView returns cobra.Command for "kubeadm config view" command
func NewCmdInit ¶
NewCmdInit returns "kubeadm init" command. NB. initOptions is exposed as parameter for allowing unit testing of
the newInitOptions method, that implements all the command options validation logic
func NewCmdJoin ¶
NewCmdJoin returns "kubeadm join" command. NB. joinOptions is exposed as parameter for allowing unit testing of
the newJoinData method, that implements all the command options validation logic
func NewCmdReset ¶
NewCmdReset returns the "kubeadm reset" command
func NewCmdToken ¶
NewCmdToken returns cobra.Command for token management
func NewCmdTokenGenerate ¶
NewCmdTokenGenerate returns cobra.Command to generate new token
func NewCmdVersion ¶
NewCmdVersion provides the version information of kubeadm.
func NewKubeadmCommand ¶
NewKubeadmCommand returns cobra.Command to run kubeadm command
func PullControlPlaneImages ¶ added in v1.15.0
func PullControlPlaneImages(runtime utilruntime.ContainerRuntime, cfg *kubeadmapi.ClusterConfiguration) error
PullControlPlaneImages pulls all images that the ImagesPull knows about
func RunCompletion ¶ added in v1.6.0
RunCompletion checks given arguments and executes command
func RunConfigView ¶ added in v1.8.0
RunConfigView gets the configuration persisted in the cluster
func RunCreateToken ¶ added in v1.6.0
func RunCreateToken(out io.Writer, client clientset.Interface, cfgPath string, initCfg *kubeadmapiv1beta2.InitConfiguration, printJoinCommand bool, kubeConfigFile string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
func RunDeleteTokens ¶ added in v1.15.0
RunDeleteTokens removes a bootstrap tokens from the server.
func RunGenerateToken ¶
RunGenerateToken just generates a random token for the user
func RunListTokens ¶ added in v1.6.0
RunListTokens lists details on all existing bootstrap tokens on the server.
Types ¶
type ImagesList ¶ added in v1.11.0
type ImagesList struct {
// contains filtered or unexported fields
}
ImagesList defines the struct used for "kubeadm config images list"
func NewImagesList ¶ added in v1.11.0
func NewImagesList(cfgPath string, cfg *kubeadmapiv1beta2.ClusterConfiguration) (*ImagesList, error)
NewImagesList returns the underlying struct for the "kubeadm config images list" command
type ImagesPull ¶ added in v1.11.0
type ImagesPull struct {
// contains filtered or unexported fields
}
ImagesPull is the struct used to hold information relating to image pulling
func NewImagesPull ¶ added in v1.11.0
func NewImagesPull(runtime utilruntime.ContainerRuntime, images []string) *ImagesPull
NewImagesPull initializes and returns the `kubeadm config images pull` command
type Version ¶ added in v1.7.0
type Version struct {
ClientVersion *apimachineryversion.Info `json:"clientVersion"`
}
Version provides the version information of kubeadm.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package options provide a central point for defining flags for kubeadm cobra commands, no matter if hard coded commands or autogenerated command for phases.
|
Package options provide a central point for defining flags for kubeadm cobra commands, no matter if hard coded commands or autogenerated command for phases. |
workflow
Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows.
|
Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows. |