Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewToken ¶
func CreateNewToken(client *clientset.Clientset, d *kubeadmapi.TokenDiscovery, tokenDuration time.Duration, usages []string, description string) error
CreateNewToken tries to create a token and fails if one with the same ID already exists
func CreateTokenAuthFile ¶
CreateTokenAuthFile creates the CSV file that can be used for allowing users with tokens access to the API Server
func UpdateOrCreateToken ¶
func UpdateOrCreateToken(client *clientset.Clientset, d *kubeadmapi.TokenDiscovery, failIfExists bool, tokenDuration time.Duration, usages []string, description string) error
UpdateOrCreateToken attempts to update a token with the given ID, or create if it does not already exist.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.