validation

package
v0.0.0-...-a79603b Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRelevantInfrastructureConfigUpdates

func HasRelevantInfrastructureConfigUpdates(oldInfra *api.InfrastructureConfig, newInfra *api.InfrastructureConfig) bool

HasRelevantInfrastructureConfigUpdates returns true if given InfrastructureConfig has relevant changes

func OverwriteLoadBalancerClasses

func OverwriteLoadBalancerClasses(constraintsClasses []api.LoadBalancerClass, cpConfig *api.ControlPlaneConfig,
	checkEdgeName func(name string) error) (*api.LoadBalancerClass, []api.LoadBalancerClass, error)

OverwriteLoadBalancerClasses uses load balancer constraints classes as defaults for cpConfig load balancer classes. The checkEdgeName function is optional. It can be used to check that the name provided by the shoot manifest is authorized.

func ValidateCloudProfileConfig

func ValidateCloudProfileConfig(cloudProfile *api.CloudProfileConfig, fldPath *field.Path) field.ErrorList

ValidateCloudProfileConfig validates a CloudProfileConfig object.

func ValidateCloudProviderSecret

func ValidateCloudProviderSecret(secret *corev1.Secret) error

ValidateCloudProviderSecret checks whether the given secret contains a valid OpenStack credentials.

func ValidateControlPlaneConfig

func ValidateControlPlaneConfig(controlPlaneConfig *api.ControlPlaneConfig, version string, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfig validates a ControlPlaneConfig object.

func ValidateControlPlaneConfigAgainstCloudProfile

func ValidateControlPlaneConfigAgainstCloudProfile(cpConfig *api.ControlPlaneConfig, shootOrg string, cloudProfileConfig *api.CloudProfileConfig, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfigAgainstCloudProfile validates the given ControlPlaneConfig against constraints in the given CloudProfile.

func ValidateControlPlaneConfigUpdate

func ValidateControlPlaneConfigUpdate(oldConfig, newConfig *api.ControlPlaneConfig, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfigUpdate validates a ControlPlaneConfig object.

func ValidateInfrastructureConfig

func ValidateInfrastructureConfig(infra *api.InfrastructureConfig, fldPath *field.Path) field.ErrorList

ValidateInfrastructureConfig validates a InfrastructureConfig object.

func ValidateInfrastructureConfigAgainstCloudProfile

func ValidateInfrastructureConfigAgainstCloudProfile(infra *api.InfrastructureConfig, shootOrg string, cloudProfileConfig *api.CloudProfileConfig, fldPath *field.Path) field.ErrorList

ValidateInfrastructureConfigAgainstCloudProfile validates the given InfrastructureConfig against constraints in the given CloudProfile.

func ValidateInfrastructureConfigUpdate

func ValidateInfrastructureConfigUpdate(oldConfig, newConfig *api.InfrastructureConfig, fldPath *field.Path) field.ErrorList

ValidateInfrastructureConfigUpdate validates a InfrastructureConfig object.

func ValidateNetworking

func ValidateNetworking(networking core.Networking, fldPath *field.Path) field.ErrorList

ValidateNetworking validates the network settings of a Shoot.

func ValidateWorkers

func ValidateWorkers(workers []core.Worker, fldPath *field.Path) field.ErrorList

ValidateWorkers validates the workers of a Shoot.

func ValidateWorkersUpdate

func ValidateWorkersUpdate(oldWorkers, newWorkers []core.Worker, fldPath *field.Path) field.ErrorList

ValidateWorkersUpdate validates updates on Workers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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