Documentation ¶
Index ¶
- func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.MasterConfiguration, ...)
- func AddInitOtherFlags(flagSet *flag.FlagSet, cfgPath *string, ...)
- func AddJoinConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.NodeConfiguration)
- func AddJoinOtherFlags(flagSet *flag.FlagSet, cfgPath *string, skipPreFlight *bool)
- func NewCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command
- func NewCmdConfig(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) *cobra.Command
- func NewCmdJoin(out io.Writer) *cobra.Command
- func NewCmdReset(out io.Writer) *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(_ io.Reader, out, err io.Writer) *cobra.Command
- 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, token string, ...) error
- func RunDeleteToken(out io.Writer, client clientset.Interface, tokenIDOrToken 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 Init
- type Join
- type Reset
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInitConfigFlags ¶ added in v1.8.0
func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.MasterConfiguration, featureGatesString *string)
AddInitConfigFlags adds init flags bound to the config to the specified flagset
func AddInitOtherFlags ¶ added in v1.8.0
func AddInitOtherFlags(flagSet *flag.FlagSet, cfgPath *string, skipPreFlight, skipTokenPrint, dryRun *bool)
AddInitOtherFlags adds init flags that are not bound to a configuration file to the given flagset
func AddJoinConfigFlags ¶ added in v1.9.0
func AddJoinConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.NodeConfiguration)
AddJoinConfigFlags adds join flags bound to the config to the specified flagset
func AddJoinOtherFlags ¶ added in v1.9.0
AddJoinOtherFlags adds join flags that are not bound to a configuration file to the given flagset
func NewCmdCompletion ¶ added in v1.6.0
NewCmdCompletion return command for executing "kubeadm completion" command
func NewCmdConfig ¶ added in v1.8.0
NewCmdConfig returns cobra.Command for "kubeadm config" command
func NewCmdConfigUpload ¶ added in v1.8.0
NewCmdConfigUpload returs cobra.Command for "kubeadm config upload" command
func NewCmdConfigUploadFromFile ¶ added in v1.8.0
NewCmdConfigUploadFromFile verifies given kubernetes config file and returs cobra.Command for "kubeadm config upload from-file" command
func NewCmdConfigUploadFromFlags ¶ added in v1.8.0
NewCmdConfigUploadFromFlags returs cobra.Command for "kubeadm config upload from-flags" command
func NewCmdConfigView ¶ added in v1.8.0
NewCmdConfigView returs cobra.Command for "kubeadm config view" command
func NewCmdInit ¶
NewCmdInit returns "kubeadm init" command.
func NewCmdJoin ¶
NewCmdJoin returns "kubeadm join" command.
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 return cobra.Command to run kubeadm command
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, token string, tokenDuration time.Duration, usages []string, extraGroups []string, description string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
func RunDeleteToken ¶ added in v1.6.0
RunDeleteToken removes a bootstrap token 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 Init ¶
type Init struct {
// contains filtered or unexported fields
}
Init defines struct used by "kubeadm init" command
func NewInit ¶
func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight, skipTokenPrint, dryRun bool) (*Init, error)
NewInit validates given arguments and instantiates Init struct with provided information.
type Join ¶
type Join struct {
// contains filtered or unexported fields
}
Join defines struct used by kubeadm join command
func NewJoin ¶
func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, skipPreFlight bool) (*Join, error)
NewJoin instantiates Join struct with given arguments
type Reset ¶
type Reset struct {
// contains filtered or unexported fields
}
Reset defines struct used for kubeadm reset command
type Version ¶ added in v1.7.0
type Version struct {
ClientVersion *apimachineryversion.Info `json:"clientVersion"`
}
Version provides the version information of kubeadm.