token

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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

type BootstrapData struct {
	ServerAddr   string
	JoinToken    string
	CaCertHashes []string
}

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

Jump to

Keyboard shortcuts

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