Documentation ¶
Index ¶
Constants ¶
View Source
const TokenUser = "tls-bootstrap-token-user"
TokenUser defines token user
Variables ¶
This section is empty.
Functions ¶
func For ¶
func For(cfg *kubeadmapi.NodeConfiguration) (*clientcmdapi.Config, error)
For returns a KubeConfig object that can be used for doing the TLS Bootstrap with the right credentials Also, before returning anything, it makes sure it can trust the API Server
func GetValidatedClusterInfoObject ¶
func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcmdapi.Cluster, error)
GetValidatedClusterInfoObject returns a validated Cluster object that specifies where the cluster is and the CA cert to trust
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.