bootstraptoken

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBootstrapKubeconfigFromBootstrapToken

func GenerateBootstrapKubeconfigFromBootstrapToken(tokenStr string, bootstrapKubeconfig *infrastructurev1beta1.BootstrapKubeconfig) (*clientcmdapi.Config, error)

GenerateBootstrapKubeconfigFromBootstrapToken creates a bootstrap kubeconfig object from the bootstrap token generated It also adds default cluster, context and auth info

func GenerateSecretFromBootstrapToken

func GenerateSecretFromBootstrapToken(tokenStr string, ttl time.Duration) (*v1.Secret, error)

GenerateSecretFromBootstrapTokenStr builds the secret object from the token string It also adds default description and auth groups that can be used by the bootstrap-kubeconfig

func GetTokenIDSecretFromBootstrapToken

func GetTokenIDSecretFromBootstrapToken(tokenStr string) (tokenID, tokenSecret string, err error)

GetTokenIDSecretFromBootstrapToken splits the token string and returns the tokenID and tokenSecret parts

Types

This section is empty.

Jump to

Keyboard shortcuts

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