kubernetesk8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/validation Index | Files

package validation

import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/validation"

Index

Functions

func ValidateAPIEndpoint

func ValidateAPIEndpoint(c *kubeadm.APIEndpoint, fldPath *field.Path) field.ErrorList

ValidateAPIEndpoint validates API server's endpoint

func ValidateAbsolutePath

func ValidateAbsolutePath(path string, fldPath *field.Path) field.ErrorList

ValidateAbsolutePath validates whether provided path is absolute or not

func ValidateArgSelection

func ValidateArgSelection(cfg *kubeadm.JoinConfiguration, fldPath *field.Path) field.ErrorList

ValidateArgSelection validates discovery related configuration and collects all encountered errors

func ValidateBootstrapTokens

func ValidateBootstrapTokens(bts []kubeadm.BootstrapToken, fldPath *field.Path) field.ErrorList

ValidateBootstrapTokens validates a slice of BootstrapToken objects

func ValidateCertSANs

func ValidateCertSANs(altnames []string, fldPath *field.Path) field.ErrorList

ValidateCertSANs validates alternative names

func ValidateClusterConfiguration

func ValidateClusterConfiguration(c *kubeadm.ClusterConfiguration) field.ErrorList

ValidateClusterConfiguration validates an ClusterConfiguration object and collects all encountered errors

func ValidateDiscovery

func ValidateDiscovery(c *kubeadm.JoinConfiguration) field.ErrorList

ValidateDiscovery validates discovery related configuration and collects all encountered errors

func ValidateDiscoveryFile

func ValidateDiscoveryFile(discoveryFile string, fldPath *field.Path) field.ErrorList

ValidateDiscoveryFile validates location of a discovery file

func ValidateEtcd

func ValidateEtcd(e *kubeadm.Etcd, fldPath *field.Path) field.ErrorList

ValidateEtcd validates the .Etcd sub-struct.

func ValidateFeatureGates

func ValidateFeatureGates(featureGates map[string]bool, fldPath *field.Path) field.ErrorList

ValidateFeatureGates validates provided feature gates

func ValidateHostPort

func ValidateHostPort(endpoint string, fldPath *field.Path) field.ErrorList

ValidateHostPort validates host[:port] endpoints

func ValidateIPFromString

func ValidateIPFromString(ipaddr string, fldPath *field.Path) field.ErrorList

ValidateIPFromString validates ip address

func ValidateIPNetFromString

func ValidateIPNetFromString(subnet string, minAddrs int64, fldPath *field.Path) field.ErrorList

ValidateIPNetFromString validates network portion of ip address

func ValidateIgnorePreflightErrors

func ValidateIgnorePreflightErrors(ignorePreflightErrors []string) (sets.String, error)

ValidateIgnorePreflightErrors validates duplicates in ignore-preflight-errors flag.

func ValidateInitConfiguration

func ValidateInitConfiguration(c *kubeadm.InitConfiguration) field.ErrorList

ValidateInitConfiguration validates an InitConfiguration object and collects all encountered errors

func ValidateJoinConfiguration

func ValidateJoinConfiguration(c *kubeadm.JoinConfiguration) field.ErrorList

ValidateJoinConfiguration validates node configuration and collects all encountered errors

func ValidateJoinDiscoveryTokenAPIServer

func ValidateJoinDiscoveryTokenAPIServer(apiServers []string, fldPath *field.Path) field.ErrorList

ValidateJoinDiscoveryTokenAPIServer validates discovery token for API server

func ValidateMixedArguments

func ValidateMixedArguments(flag *pflag.FlagSet) error

ValidateMixedArguments validates passed arguments

func ValidateNetworking

func ValidateNetworking(c *kubeadm.Networking, fldPath *field.Path) field.ErrorList

ValidateNetworking validates networking configuration

func ValidateNodeRegistrationOptions

func ValidateNodeRegistrationOptions(nro *kubeadm.NodeRegistrationOptions, fldPath *field.Path) field.ErrorList

ValidateNodeRegistrationOptions validates the NodeRegistrationOptions object

func ValidatePort

func ValidatePort(port int32, fldPath *field.Path) field.ErrorList

ValidatePort validates port numbers

func ValidateSocketPath

func ValidateSocketPath(socket string, fldPath *field.Path) field.ErrorList

ValidateSocketPath validates format of socket path or url

func ValidateToken

func ValidateToken(token string, fldPath *field.Path) field.ErrorList

ValidateToken validates a Bootstrap Token

func ValidateTokenGroups

func ValidateTokenGroups(usages []string, groups []string, fldPath *field.Path) field.ErrorList

ValidateTokenGroups validates token groups

func ValidateTokenUsages

func ValidateTokenUsages(usages []string, fldPath *field.Path) field.ErrorList

ValidateTokenUsages validates token usages

func ValidateURLs

func ValidateURLs(urls []string, requireHTTPS bool, fldPath *field.Path) field.ErrorList

ValidateURLs validates the URLs given in the string slice, makes sure they are parseable. Optionally, it can enforcs HTTPS usage.

Source Files

validation.go

Version
v1.12.5
Published
Jan 15, 2019
Platform
js/wasm
Imports
21 packages
Last checked
50 minutes ago

Tools for package owners.