Documentation ¶
Overview ¶
Package validate contains validation utilities for installer types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ValidNetworkTypes is a collection of the valid network types. ValidNetworkTypes = map[netopv1.NetworkType]bool{ netopv1.NetworkTypeOpenshiftSDN: true, netopv1.NetworkTypeOVNKubernetes: true, netopv1.NetworkTypeCalico: true, netopv1.NetworkTypeKuryr: true, } // ValidNetworkTypeValues is a slice filled with the valid network types as // strings. ValidNetworkTypeValues = func() []string { validValues := make([]string, len(ValidNetworkTypes)) i := 0 for t := range ValidNetworkTypes { validValues[i] = string(t) i++ } return validValues }() )
Functions ¶
func ClusterName ¶
ClusterName checks if the given string is a valid name for a cluster and returns an error if not.
func DoCIDRsOverlap ¶ added in v0.7.0
DoCIDRsOverlap returns true if one of the CIDRs is a subset of the other.
func DomainName ¶
DomainName checks if the given string is a valid domain name and returns an error if not.
func ImagePullSecret ¶ added in v0.7.0
ImagePullSecret checks if the given string is a valid image pull secret and returns an error if not.
func SSHPublicKey ¶ added in v0.4.0
SSHPublicKey checks if the given string is a valid SSH public key and returns an error if not.
func SubnetCIDR ¶
SubnetCIDR checks if the given IP net is a valid CIDR for a master nodes or worker nodes subnet and returns an error if not.
Types ¶
This section is empty.