cmd

package
v1.8.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Index

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 NewCmdCompletion added in v1.6.0

func NewCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command

func NewCmdConfig added in v1.8.0

func NewCmdConfig(out io.Writer) *cobra.Command

func NewCmdConfigUpload added in v1.8.0

func NewCmdConfigUpload(out io.Writer, kubeConfigFile *string) *cobra.Command

func NewCmdConfigUploadFromFile added in v1.8.0

func NewCmdConfigUploadFromFile(out io.Writer, kubeConfigFile *string) *cobra.Command

func NewCmdConfigUploadFromFlags added in v1.8.0

func NewCmdConfigUploadFromFlags(out io.Writer, kubeConfigFile *string) *cobra.Command

func NewCmdConfigView added in v1.8.0

func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command

func NewCmdInit

func NewCmdInit(out io.Writer) *cobra.Command

NewCmdInit returns "kubeadm init" command.

func NewCmdJoin

func NewCmdJoin(out io.Writer) *cobra.Command

NewCmdJoin returns "kubeadm join" command.

func NewCmdReset

func NewCmdReset(out io.Writer) *cobra.Command

NewCmdReset returns the "kubeadm reset" command

func NewCmdToken

func NewCmdToken(out io.Writer, errW io.Writer) *cobra.Command

func NewCmdTokenGenerate

func NewCmdTokenGenerate(out io.Writer) *cobra.Command

func NewCmdVersion

func NewCmdVersion(out io.Writer) *cobra.Command

func NewKubeadmCommand

func NewKubeadmCommand(_ io.Reader, out, err io.Writer) *cobra.Command

func RunCompletion added in v1.6.0

func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error

func RunConfigView added in v1.8.0

func RunConfigView(out io.Writer, client clientset.Interface) error

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

func RunDeleteToken(out io.Writer, client clientset.Interface, tokenIdOrToken string) error

RunDeleteToken removes a bootstrap token from the server.

func RunGenerateToken

func RunGenerateToken(out io.Writer) error

RunGenerateToken just generates a random token for the user

func RunListTokens added in v1.6.0

func RunListTokens(out io.Writer, errW io.Writer, client clientset.Interface) error

RunListTokens lists details on all existing bootstrap tokens on the server.

func RunVersion

func RunVersion(out io.Writer, cmd *cobra.Command) error

Types

type Init

type Init struct {
	// contains filtered or unexported fields
}

func NewInit

func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight, skipTokenPrint, dryRun bool) (*Init, error)

func (*Init) Run

func (i *Init) Run(out io.Writer) error

Run executes master node provisioning, including certificates, needed static pod manifests, etc.

func (*Init) Validate added in v1.6.0

func (i *Init) Validate(cmd *cobra.Command) error

Validate validates configuration passed to "kubeadm init"

type Join

type Join struct {
	// contains filtered or unexported fields
}

func NewJoin

func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, skipPreFlight bool) (*Join, error)

func (*Join) Run

func (j *Join) Run(out io.Writer) error

Run executes worker node provisioning and tries to join an existing cluster.

func (*Join) Validate added in v1.6.0

func (j *Join) Validate(cmd *cobra.Command) error

type Reset

type Reset struct {
	// contains filtered or unexported fields
}

func NewReset

func NewReset(skipPreFlight bool, certsDir string) (*Reset, error)

func (*Reset) Run

func (r *Reset) Run(out io.Writer) error

Run reverts any changes made to this host by "kubeadm init" or "kubeadm join".

type Version added in v1.7.0

type Version struct {
	ClientVersion *apimachineryversion.Info `json:"clientVersion"`
}

Version provides the version information of kubeadm.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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