Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PerformTLSBootstrap ¶
func PerformTLSBootstrap(connection *ConnectionDetails) (*clientcmdapi.Config, error)
PerformTLSBootstrap executes a certificate signing request with the provided connection details.
func RetrieveTrustedClusterInfo ¶
func RetrieveTrustedClusterInfo(s *kubeadmapi.NodeConfiguration) (*kubeadmapi.ClusterInfo, error)
Types ¶
type ConnectionDetails ¶
type ConnectionDetails struct { CertClient *certclient.CertificatesClient Endpoint string CACert []byte NodeName types.NodeName }
ConnectionDetails represents a master API endpoint connection
func EstablishMasterConnection ¶
func EstablishMasterConnection(s *kubeadmapi.NodeConfiguration, clusterInfo *kubeadmapi.ClusterInfo) (*ConnectionDetails, error)
EstablishMasterConnection establishes a connection with exactly one of the provided API endpoints. The function builds a client for every endpoint and concurrently keeps trying to connect to any one of the provided endpoints. Blocks until at least one connection is established, then it stops the connection attempts for other endpoints.
Click to show internal directories.
Click to hide internal directories.