package util

import "k8s.io/client-go/tools/bootstrap/token/util"

Index

Functions

func ValidateBootstrapGroupName

func ValidateBootstrapGroupName(name string) error

ValidateBootstrapGroupName checks if the provided group name is a valid bootstrap group name. Returns nil if valid or a validation error if invalid. TODO(mattmoyer): this validation should migrate out to client-go (see https://github.com/kubernetes/client-go/issues/114)

func ValidateUsages

func ValidateUsages(usages []string) error

ValidateUsages validates that the passed in string are valid usage strings for bootstrap tokens.

Source Files

helpers.go

Version
v7.0.0+incompatible
Published
Mar 27, 2018
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.