Documentation ¶
Index ¶
- 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(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command
- func RunCreateToken(out io.Writer, cmd *cobra.Command, tokenDuration time.Duration, token string) error
- func RunDeleteToken(out io.Writer, cmd *cobra.Command, tokenId string) error
- func RunGenerateToken(out io.Writer) error
- func RunListTokens(out io.Writer, errW io.Writer, cmd *cobra.Command) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- type Init
- type Join
- type Reset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdInit ¶
NewCmdInit returns "kubeadm init" command.
func NewCmdJoin ¶
NewCmdJoin returns "kubeadm join" command.
func NewCmdReset ¶
NewCmdReset returns the "kubeadm reset" command
func NewKubeadmCommand ¶
func RunCreateToken ¶ added in v1.6.1
func RunCreateToken(out io.Writer, cmd *cobra.Command, tokenDuration time.Duration, token string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
func RunDeleteToken ¶ added in v1.6.1
RunDeleteToken removes a bootstrap token from the server.
func RunGenerateToken ¶
func RunListTokens ¶ added in v1.6.1
RunListTokens lists details on all existing bootstrap tokens on the server.
Types ¶
type Init ¶
type Init struct {
// contains filtered or unexported fields
}
func NewInit ¶
func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight bool, selfHosted bool) (*Init, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.