validation

package
v2.18.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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 ValidateClusterNetworkConfig added in v2.18.0

func ValidateClusterNetworkConfig(n *kubermaticv1.ClusterNetworkingConfig, fldPath *field.Path, allowEmpty bool) field.ErrorList

func ValidateContainerRuntime added in v2.18.0

func ValidateContainerRuntime(spec *kubermaticv1.ClusterSpec) error

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, fldPath *field.Path) field.ErrorList

func ValidateNodePortRange added in v2.17.1

func ValidateNodePortRange(nodePortRange string, fldPath *field.Path, required bool) field.ErrorList

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL