validation

package
v2.16.9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 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")
)

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

type WebhookOpts added in v2.16.3

type WebhookOpts struct {

	// Deprecated fields to be removed
	ListenAddress string
	CertFile      string
	KeyFile       string
	// contains filtered or unexported fields
}

func (*WebhookOpts) AddFlags added in v2.16.3

func (opts *WebhookOpts) AddFlags(fs *flag.FlagSet, includeDeprecatedFlags bool)

func (*WebhookOpts) Configure added in v2.16.3

func (opts *WebhookOpts) Configure(s *webhook.Server) error

func (*WebhookOpts) Configured added in v2.16.3

func (opts *WebhookOpts) Configured() bool

Configured() must be called after the Validate() function has normalized the deprecated flags.

func (*WebhookOpts) Validate added in v2.16.3

func (opts *WebhookOpts) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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