Documentation ¶
Index ¶
- func ExtractCertificateKey(kubeadmJoinCmd string) (string, error)
- func ExtractDiscoveryTokenCaCertHash(kubeadmJoinCmd string) (string, error)
- func ExtractJoinCmd(stdOut string) (string, error)
- func GenerateBootstrapSecret(namespace string) (*corev1.Secret, error)
- func GenerateBootstrapToken() (*kubeadmapi.BootstrapTokenString, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCertificateKey ¶
ExtractCertificateKey extracts the certificate key from the provided kubeadm join command.
func ExtractDiscoveryTokenCaCertHash ¶
ExtractDiscoveryTokenCaCertHash extracts the discover token CA cert hash from the provided kubeadm join command.
func ExtractJoinCmd ¶
ExtractJoinCmd goes through the provided kubeadm init standard output and extracts the kubeadm join command printed.
func GenerateBootstrapSecret ¶
GenerateBootstrapSecret creates a new bootstrap secret to be used with kubeadm join. This secret must be applied to the kubernetes cluster prior to trying to join a node to the cluster.
func GenerateBootstrapToken ¶
func GenerateBootstrapToken() (*kubeadmapi.BootstrapTokenString, error)
GenerateBootstrapToken generates a new kubeadm bootstrap token, used by kubeadm init and kubeadm join to safely form clusters.
Types ¶
This section is empty.