package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

BootstrapTokenFromSecret returns a BootstrapToken object from the given Secret.
BootstrapTokenToSecret converts the given BootstrapToken object to its Secret representation that may be submitted to the API Server in order to be stored.
NewBootstrapTokenString converts the given Bootstrap Token as a string to the BootstrapTokenString object used for serialization/deserialization and internal usage.
NewBootstrapTokenStringFromIDAndSecret is a wrapper around NewBootstrapTokenString that allows the caller to specify the ID and Secret separately.
SetDefaults_BootstrapToken sets the defaults for an individual Bootstrap Token.

# Constants

DefaultTokenDuration specifies the default amount of time that a bootstrap token will be valid Default behaviour is 24 hours.

# Variables

DefaultTokenGroups specifies the default groups that this token will authenticate as when used for authentication.
DefaultTokenUsages specifies the default functions a token will get.

# Structs

BootstrapToken describes one bootstrap token, stored as a Secret in the cluster +k8s:deepcopy-gen=true.
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".