Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BootstrapUser defines bootstrap user name BootstrapUser = "token-bootstrap-client" // DiscoveryRetryInterval specifies how long kubeadm should wait before retrying to connect to the control-plane when doing discovery DiscoveryRetryInterval = 5 * time.Second // PatchNodeTimeout specifies how long kubeadm should wait for applying the label and taint on the control-plane before timing out PatchNodeTimeout = 2 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func RetrieveValidatedConfigInfo ¶
func RetrieveValidatedConfigInfo(client kubernetes.Interface, data *BootstrapData) (*clientcmdapi.Config, error)
RetrieveValidatedConfigInfo is a private implementation of RetrieveValidatedConfigInfo. It accepts an optional clientset that can be used for testing purposes.
Types ¶
type BootstrapData ¶
BootstrapData is used for retrieving Cluster-Info from remote server, and it includes remote server address, bootstrap token and CaCertHashes.
type BootstrapTokenString ¶
type BootstrapTokenString struct { ID string `json:"-"` Secret string `json:"-" datapolicy:"token"` }
BootstrapTokenString is a token of the format abcdef.abcdef0123456789 that is used for both validation of the practically of the API server from a joining node's point of view and as an authentication method for the node in the bootstrap phase of "kubeadm join". This token is and should be short-lived
Click to show internal directories.
Click to hide internal directories.