node

package
v1.5.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL