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

package validation

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

Index

Package Files

validation.go

func ValidateAPIEndpoint Uses

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

ValidateAPIEndpoint validates API server's endpoint

func ValidateAPIServer Uses

func ValidateAPIServer(a *kubeadm.APIServer, fldPath *field.Path) field.ErrorList

ValidateAPIServer validates a APIServer object and collects all encountered errors

func ValidateAbsolutePath Uses

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

ValidateAbsolutePath validates whether provided path is absolute or not

func ValidateBootstrapTokens Uses

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

ValidateBootstrapTokens validates a slice of BootstrapToken objects

func ValidateCertSANs Uses

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

ValidateCertSANs validates alternative names

func ValidateClusterConfiguration Uses

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

ValidateClusterConfiguration validates an ClusterConfiguration object and collects all encountered errors

func ValidateDiscovery Uses

func ValidateDiscovery(d *kubeadm.Discovery, fldPath *field.Path) field.ErrorList

ValidateDiscovery validates discovery related configuration and collects all encountered errors

func ValidateDiscoveryBootstrapToken Uses

func ValidateDiscoveryBootstrapToken(b *kubeadm.BootstrapTokenDiscovery, fldPath *field.Path) field.ErrorList

ValidateDiscoveryBootstrapToken validates bootstrap token discovery configuration

func ValidateDiscoveryFile Uses

func ValidateDiscoveryFile(f *kubeadm.FileDiscovery, fldPath *field.Path) field.ErrorList

ValidateDiscoveryFile validates file discovery configuration

func ValidateDiscoveryKubeConfigPath Uses

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

ValidateDiscoveryKubeConfigPath validates location of a discovery file

func ValidateDiscoveryTokenAPIServer Uses

func ValidateDiscoveryTokenAPIServer(apiServer string, fldPath *field.Path) field.ErrorList

ValidateDiscoveryTokenAPIServer validates discovery token for API server

func ValidateEtcd Uses

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

ValidateEtcd validates the .Etcd sub-struct.

func ValidateFeatureGates Uses

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

ValidateFeatureGates validates provided feature gates

func ValidateHostPort Uses

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

ValidateHostPort validates host[:port] endpoints

func ValidateIPFromString Uses

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

ValidateIPFromString validates ip address

func ValidateIPNetFromString Uses

func ValidateIPNetFromString(subnetStr string, minAddrs int64, isDualStack bool, fldPath *field.Path) field.ErrorList

ValidateIPNetFromString validates network portion of ip address

func ValidateIgnorePreflightErrors Uses

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

ValidateIgnorePreflightErrors validates duplicates in: - ignore-preflight-errors flag and - ignorePreflightErrors field in {Init,Join}Configuration files.

func ValidateInitConfiguration Uses

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

ValidateInitConfiguration validates an InitConfiguration object and collects all encountered errors

func ValidateJoinConfiguration Uses

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

ValidateJoinConfiguration validates node configuration and collects all encountered errors

func ValidateJoinControlPlane Uses

func ValidateJoinControlPlane(c *kubeadm.JoinControlPlane, fldPath *field.Path) field.ErrorList

ValidateJoinControlPlane validates joining control plane configuration and collects all encountered errors

func ValidateMixedArguments Uses

func ValidateMixedArguments(flag *pflag.FlagSet) error

ValidateMixedArguments validates passed arguments

func ValidateNetworking Uses

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

ValidateNetworking validates networking configuration

func ValidateNodeRegistrationOptions Uses

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

ValidateNodeRegistrationOptions validates the NodeRegistrationOptions object

func ValidatePort Uses

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

ValidatePort validates port numbers

func ValidateSocketPath Uses

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

ValidateSocketPath validates format of socket path or url

func ValidateToken Uses

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

ValidateToken validates a Bootstrap Token

func ValidateTokenGroups Uses

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

ValidateTokenGroups validates token groups

func ValidateTokenUsages Uses

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

ValidateTokenUsages validates token usages

func ValidateURLs Uses

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

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

Package validation imports 23 packages (graph) and is imported by 28 packages. Updated 2019-11-14. Refresh now. Tools for package owners.