validation

package
v2.14.11+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 33

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 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 ValidateUpdateCluster

func ValidateUpdateCluster(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, dc *kubermaticv1.Datacenter, clusterProvider *kubernetesprovider.ClusterProvider) 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