validation

package
v2.19.13 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 18 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")

	// UnsafeCNIUpgradeLabel allows unsafe CNI version upgrade (difference in versions more than one minor version).
	UnsafeCNIUpgradeLabel = "unsafe-cni-upgrade"
	// UnsafeCNIMigrationLabel allows unsafe CNI type migration.
	UnsafeCNIMigrationLabel = "unsafe-cni-migration"
)

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

ValidateCloudSpec validates if the cloud spec is valid If this is not called from within another validation routine, parentFieldPath can be nil.

func ValidateClusterNetworkConfig added in v2.18.0

func ValidateClusterNetworkConfig(n *kubermaticv1.ClusterNetworkingConfig, cni *kubermaticv1.CNIPluginSettings, fldPath *field.Path) field.ErrorList

func ValidateClusterSpec added in v2.19.0

func ValidateClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, enabledFeatures features.FeatureGate, parentFieldPath *field.Path) field.ErrorList

ValidateClusterSpec validates the given cluster spec. If this is not called from within another validation routine, parentFieldPath can be nil.

func ValidateClusterUpdate added in v2.19.0

func ValidateClusterUpdate(ctx context.Context, newCluster, oldCluster *kubermaticv1.Cluster, dc *kubermaticv1.Datacenter, cloudProvider provider.CloudProvider, features features.FeatureGate) field.ErrorList

ValidateClusterUpdate validates the new cluster and if no forbidden changes were attempted

func ValidateContainerRuntime added in v2.18.0

func ValidateContainerRuntime(spec *kubermaticv1.ClusterSpec) error

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 ValidateNewClusterSpec added in v2.19.0

func ValidateNewClusterSpec(spec *kubermaticv1.ClusterSpec, dc *kubermaticv1.Datacenter, cloudProvider provider.CloudProvider, enabledFeatures features.FeatureGate, parentFieldPath *field.Path) field.ErrorList

func ValidateNodePortRange added in v2.17.1

func ValidateNodePortRange(nodePortRange string, fldPath *field.Path) *field.Error

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