Documentation
¶
Index ¶
- Variables
- func ValidateCloudChange(newSpec, oldSpec kubermaticv1.CloudSpec) error
- func ValidateCloudSpec(spec kubermaticv1.CloudSpec, dc *kubermaticv1.Datacenter) error
- func ValidateCreateClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, ...) error
- func ValidateCreateNodeSpec(c *kubermaticv1.Cluster, spec *apiv1.NodeSpec, dc *kubermaticv1.Datacenter) error
- func ValidateLeaderElectionSettings(l kubermaticv1.LeaderElectionSettings) error
- func ValidateNodePortRange(nodePortRange string, fldPath *field.Path) field.ErrorList
- func ValidateUpdateCluster(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, ...) error
- func ValidateUpdateWindow(updateWindow *kubermaticv1.UpdateWindow) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCloudChangeNotAllowed describes that it is not allowed to change the cloud provider ErrCloudChangeNotAllowed = errors.New("not allowed to change the cloud provider") )
Functions ¶
func ValidateCloudChange ¶
func ValidateCloudChange(newSpec, oldSpec kubermaticv1.CloudSpec) error
ValidateCloudChange validates if the cloud provider has been changed
func ValidateCloudSpec ¶
func ValidateCloudSpec(spec kubermaticv1.CloudSpec, dc *kubermaticv1.Datacenter) error
ValidateCloudSpec validates if the cloud spec is valid
func ValidateCreateClusterSpec ¶
func ValidateCreateClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, cloudProvider provider.CloudProvider) error
ValidateCreateClusterSpec validates the given cluster spec
func ValidateCreateNodeSpec ¶
func ValidateCreateNodeSpec(c *kubermaticv1.Cluster, spec *apiv1.NodeSpec, dc *kubermaticv1.Datacenter) error
func ValidateLeaderElectionSettings ¶ added in v2.16.4
func ValidateLeaderElectionSettings(l kubermaticv1.LeaderElectionSettings) error
func ValidateNodePortRange ¶ added in v2.17.1
func ValidateUpdateCluster ¶
func ValidateUpdateCluster(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, dc *kubermaticv1.Datacenter, clusterProvider *kubernetesprovider.ClusterProvider, caBundle *x509.CertPool) error
ValidateUpdateCluster validates if the cluster update is allowed
func ValidateUpdateWindow ¶
func ValidateUpdateWindow(updateWindow *kubermaticv1.UpdateWindow) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.