package token
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/token"
Index ¶
- func CreateBootstrapConfigMapIfNotExists(client clientset.Interface, file string) error
- func CreateNewToken(client *clientset.Clientset, token string, tokenDuration time.Duration, usages []string, description string) error
- func UpdateOrCreateToken(client *clientset.Clientset, token string, failIfExists bool, tokenDuration time.Duration, usages []string, description string) error
Functions ¶
func CreateBootstrapConfigMapIfNotExists ¶
CreateBootstrapConfigMapIfNotExists creates the public cluster-info ConfigMap (if it doesn't already exist)
func CreateNewToken ¶
func CreateNewToken(client *clientset.Clientset, token string, 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 UpdateOrCreateToken ¶
func UpdateOrCreateToken(client *clientset.Clientset, token string, 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.
Source Files ¶
bootstrap.go
- Version
- v1.7.5
- Published
- Aug 31, 2017
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 21 minutes ago –
Tools for package owners.