validation

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 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 HasRelevantControlPlaneConfigUpdates

func HasRelevantControlPlaneConfigUpdates(oldCpConfig *apisvsphere.ControlPlaneConfig, newCpConfig *apisvsphere.ControlPlaneConfig) bool

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 []apisvsphere.LoadBalancerClass, cpConfig *apisvsphere.ControlPlaneConfig,
	checkIPPoolName func(name string) error) (*apisvsphere.LoadBalancerClass, []apisvsphere.LoadBalancerClass, error)

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

func ValidateCloudProfileConfig

func ValidateCloudProfileConfig(profileSpec *gardencorev1beta1.CloudProfileSpec, profileConfig *apisvsphere.CloudProfileConfig) field.ErrorList

ValidateCloudProfileConfig validates a CloudProfileConfig object.

func ValidateControlPlaneConfig

func ValidateControlPlaneConfig(controlPlaneConfig *apisvsphere.ControlPlaneConfig, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfig validates a ControlPlaneConfig object.

func ValidateControlPlaneConfigAgainstCloudProfile

func ValidateControlPlaneConfigAgainstCloudProfile(cpConfig *apisvsphere.ControlPlaneConfig, shootRegion string, cloudProfile *gardencorev1beta1.CloudProfile, cloudProfileConfig *apisvsphere.CloudProfileConfig, fldPath *field.Path) field.ErrorList

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

func ValidateControlPlaneConfigUpdate

func ValidateControlPlaneConfigUpdate(oldConfig, newConfig *apisvsphere.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, shootRegion 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