Documentation ¶
Index ¶
- func ValidateAPIEndpoint(c *kubeadm.APIEndpoint, fldPath *field.Path) field.ErrorList
- func ValidateAPIServer(a *kubeadm.APIServer, fldPath *field.Path) field.ErrorList
- func ValidateAbsolutePath(path string, fldPath *field.Path) field.ErrorList
- func ValidateBootstrapTokens(bts []bootstraptokenv1.BootstrapToken, fldPath *field.Path) field.ErrorList
- func ValidateCertSANs(altnames []string, fldPath *field.Path) field.ErrorList
- func ValidateClusterConfiguration(c *kubeadm.ClusterConfiguration) field.ErrorList
- func ValidateDNS(dns *kubeadm.DNS, fldPath *field.Path) field.ErrorList
- func ValidateDiscovery(d *kubeadm.Discovery, fldPath *field.Path) field.ErrorList
- func ValidateDiscoveryBootstrapToken(b *kubeadm.BootstrapTokenDiscovery, fldPath *field.Path) field.ErrorList
- func ValidateDiscoveryFile(f *kubeadm.FileDiscovery, fldPath *field.Path) field.ErrorList
- func ValidateDiscoveryKubeConfigPath(discoveryFile string, fldPath *field.Path) field.ErrorList
- func ValidateDiscoveryTokenAPIServer(apiServer string, fldPath *field.Path) field.ErrorList
- func ValidateEtcd(e *kubeadm.Etcd, fldPath *field.Path) field.ErrorList
- func ValidateFeatureGates(featureGates map[string]bool, fldPath *field.Path) field.ErrorList
- func ValidateHostPort(endpoint string, fldPath *field.Path) field.ErrorList
- func ValidateIPFromString(ipaddr string, fldPath *field.Path) field.ErrorList
- func ValidateIPNetFromString(subnetStr string, minAddrs int64, fldPath *field.Path) field.ErrorList
- func ValidateIgnorePreflightErrors(ignorePreflightErrorsFromCLI, ignorePreflightErrorsFromConfigFile []string) (sets.Set[string], error)
- func ValidateImageRepository(imageRepository string, fldPath *field.Path) field.ErrorList
- func ValidateInitConfiguration(c *kubeadm.InitConfiguration) field.ErrorList
- func ValidateJoinConfiguration(c *kubeadm.JoinConfiguration) field.ErrorList
- func ValidateJoinControlPlane(c *kubeadm.JoinControlPlane, fldPath *field.Path) field.ErrorList
- func ValidateMixedArguments(flag *pflag.FlagSet) error
- func ValidateNetworking(c *kubeadm.ClusterConfiguration, fldPath *field.Path) field.ErrorList
- func ValidateNodeRegistrationOptions(nro *kubeadm.NodeRegistrationOptions, fldPath *field.Path) field.ErrorList
- func ValidatePodSubnetNodeMask(subnetStr string, c *kubeadm.ClusterConfiguration, fldPath *field.Path) field.ErrorList
- func ValidatePort(port int32, fldPath *field.Path) field.ErrorList
- func ValidateResetConfiguration(c *kubeadm.ResetConfiguration) field.ErrorList
- func ValidateServiceSubnetSize(subnetStr string, fldPath *field.Path) field.ErrorList
- func ValidateSocketPath(socket string, fldPath *field.Path) field.ErrorList
- func ValidateToken(token string, fldPath *field.Path) field.ErrorList
- func ValidateTokenGroups(usages []string, groups []string, fldPath *field.Path) field.ErrorList
- func ValidateTokenUsages(usages []string, fldPath *field.Path) field.ErrorList
- func ValidateURLs(urls []string, requireHTTPS bool, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAPIEndpoint ¶ added in v1.8.0
ValidateAPIEndpoint validates API server's endpoint
func ValidateAPIServer ¶ added in v1.13.0
ValidateAPIServer validates a APIServer object and collects all encountered errors
func ValidateAbsolutePath ¶
ValidateAbsolutePath validates whether provided path is absolute or not
func ValidateBootstrapTokens ¶ added in v1.11.0
func ValidateBootstrapTokens(bts []bootstraptokenv1.BootstrapToken, fldPath *field.Path) field.ErrorList
ValidateBootstrapTokens validates a slice of BootstrapToken objects
func ValidateCertSANs ¶ added in v1.10.0
ValidateCertSANs validates alternative names
func ValidateClusterConfiguration ¶ added in v1.12.0
func ValidateClusterConfiguration(c *kubeadm.ClusterConfiguration) field.ErrorList
ValidateClusterConfiguration validates an ClusterConfiguration object and collects all encountered errors
func ValidateDNS ¶ added in v1.21.0
ValidateDNS validates the DNS object and collects all encountered errors
func ValidateDiscovery ¶
ValidateDiscovery validates discovery related configuration and collects all encountered errors
func ValidateDiscoveryBootstrapToken ¶ added in v1.13.0
func ValidateDiscoveryBootstrapToken(b *kubeadm.BootstrapTokenDiscovery, fldPath *field.Path) field.ErrorList
ValidateDiscoveryBootstrapToken validates bootstrap token discovery configuration
func ValidateDiscoveryFile ¶
ValidateDiscoveryFile validates file discovery configuration
func ValidateDiscoveryKubeConfigPath ¶ added in v1.13.0
ValidateDiscoveryKubeConfigPath validates location of a discovery file
func ValidateDiscoveryTokenAPIServer ¶ added in v1.13.0
ValidateDiscoveryTokenAPIServer validates discovery token for API server
func ValidateEtcd ¶ added in v1.11.0
ValidateEtcd validates the .Etcd sub-struct.
func ValidateFeatureGates ¶ added in v1.8.0
ValidateFeatureGates validates provided feature gates
func ValidateHostPort ¶ added in v1.12.0
ValidateHostPort validates host[:port] endpoints
func ValidateIPFromString ¶
ValidateIPFromString validates ip address
func ValidateIPNetFromString ¶
ValidateIPNetFromString validates network portion of ip address
func ValidateIgnorePreflightErrors ¶ added in v1.9.0
func ValidateIgnorePreflightErrors(ignorePreflightErrorsFromCLI, ignorePreflightErrorsFromConfigFile []string) (sets.Set[string], error)
ValidateIgnorePreflightErrors validates duplicates in: - ignore-preflight-errors flag and - ignorePreflightErrors field in {Init,Join}Configuration files.
func ValidateImageRepository ¶ added in v1.26.0
ValidateImageRepository validates the image repository format
func ValidateInitConfiguration ¶ added in v1.12.0
func ValidateInitConfiguration(c *kubeadm.InitConfiguration) field.ErrorList
ValidateInitConfiguration validates an InitConfiguration object and collects all encountered errors
func ValidateJoinConfiguration ¶ added in v1.12.0
func ValidateJoinConfiguration(c *kubeadm.JoinConfiguration) field.ErrorList
ValidateJoinConfiguration validates node configuration and collects all encountered errors
func ValidateJoinControlPlane ¶ added in v1.13.0
ValidateJoinControlPlane validates joining control plane configuration and collects all encountered errors
func ValidateMixedArguments ¶ added in v1.7.1
ValidateMixedArguments validates passed arguments
func ValidateNetworking ¶
ValidateNetworking validates networking configuration
func ValidateNodeRegistrationOptions ¶ added in v1.11.0
func ValidateNodeRegistrationOptions(nro *kubeadm.NodeRegistrationOptions, fldPath *field.Path) field.ErrorList
ValidateNodeRegistrationOptions validates the NodeRegistrationOptions object
func ValidatePodSubnetNodeMask ¶ added in v1.20.0
func ValidatePodSubnetNodeMask(subnetStr string, c *kubeadm.ClusterConfiguration, fldPath *field.Path) field.ErrorList
ValidatePodSubnetNodeMask validates that the relation between podSubnet and node-masks is correct
func ValidatePort ¶ added in v1.12.0
ValidatePort validates port numbers
func ValidateResetConfiguration ¶ added in v1.28.0
func ValidateResetConfiguration(c *kubeadm.ResetConfiguration) field.ErrorList
ValidateResetConfiguration validates a ResetConfiguration object and collects all encountered errors
func ValidateServiceSubnetSize ¶ added in v1.20.0
ValidateServiceSubnetSize validates that the maximum subnet size is not exceeded Should be a small cidr due to how it is stored in etcd. bigger cidr (specially those offered by IPv6) will add no value and significantly increase snapshotting time. NOTE: This is identical to validation performed in the apiserver.
func ValidateSocketPath ¶ added in v1.12.0
ValidateSocketPath validates format of socket path or url
func ValidateToken ¶
ValidateToken validates a Bootstrap Token
func ValidateTokenGroups ¶ added in v1.10.0
ValidateTokenGroups validates token groups
func ValidateTokenUsages ¶ added in v1.10.0
ValidateTokenUsages validates token usages
Types ¶
This section is empty.