package token
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/token"
Index ¶
- func CreateTokenAuthFile(bt string) error
- func UpdateOrCreateToken(client *clientset.Clientset, d *kubeadmapi.TokenDiscovery, tokenDuration time.Duration) error
Functions ¶
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, tokenDuration time.Duration) error
UpdateOrCreateToken attempts to update a token with the given ID, or create if it does not already exist.
Source Files ¶
bootstrap.go csv.go
- Version
- v1.7.0-alpha.0
- Published
- Feb 21, 2017
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 10 minutes ago –
Tools for package owners.