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 NewWithRunner ¶
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
Click to show internal directories.
Click to hide internal directories.