kubeadm

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubeadm

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

The purpose of Kubeadm and this file is to provide a unit tested wrapper around the 'kubeadm' exec command. Higher level, application specific functionality built on top of kubeadm should be be in another location.

func New

func New() *Kubeadm

func NewWithRunner

func NewWithRunner(runner cmdrunner.Runner) *Kubeadm

func (*Kubeadm) TokenCreate

func (k *Kubeadm) TokenCreate(params TokenCreateParams) (string, error)

TokenCreate execs `kubeadm token create` with the appropriate flags added by interpreting the params argument. The output of `kubeadm token create` is returned in full, including the terminating newline, without any modification.

type TokenCreateParams

type TokenCreateParams struct {
	Config           string
	Description      string
	Groups           []string
	Help             bool
	KubeConfig       string
	PrintJoinCommand bool
	TTL              time.Duration
	Usages           []string
}

see https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-token/ for an explanation of the parameters

Jump to

Keyboard shortcuts

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