validation

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const VolumeTypeScratch = "SCRATCH"

VolumeTypeScratch is the gcp SCRATCH volume type

Variables

This section is empty.

Functions

func ValidateCloudNatConfig added in v1.35.0

func ValidateCloudNatConfig(config *apisgcp.CloudNAT, fldPath *field.Path) field.ErrorList

ValidateCloudNatConfig validates the config of the CloudNat. We intentionally keep the validation light, only checking for gotchas (e.g. the port counts having to be powers of two) and obvious errors.

func ValidateCloudProfileConfig

func ValidateCloudProfileConfig(cpConfig *apisgcp.CloudProfileConfig, machineImages []core.MachineImage, fldPath *field.Path) field.ErrorList

ValidateCloudProfileConfig validates a CloudProfileConfig object.

func ValidateCloudProviderSecret added in v1.8.0

func ValidateCloudProviderSecret(secret *corev1.Secret) error

ValidateCloudProviderSecret checks whether the given secret contains a valid GCP service account.

func ValidateControlPlaneConfig

func ValidateControlPlaneConfig(controlPlaneConfig *apisgcp.ControlPlaneConfig, allowedZones, workerZones sets.Set[string], version string, fldPath *field.Path) field.ErrorList

ValidateControlPlaneConfig validates a ControlPlaneConfig object.

func ValidateControlPlaneConfigUpdate

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

ValidateControlPlaneConfigUpdate validates a ControlPlaneConfig object.

func ValidateInfrastructureConfig

func ValidateInfrastructureConfig(infra *apisgcp.InfrastructureConfig, nodesCIDR, podsCIDR, servicesCIDR *string, fldPath *field.Path) field.ErrorList

ValidateInfrastructureConfig validates a InfrastructureConfig object.

func ValidateInfrastructureConfigUpdate

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

ValidateInfrastructureConfigUpdate validates a InfrastructureConfig object.

func ValidateNetworking added in v1.4.0

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

ValidateNetworking validates the network settings of a Shoot.

func ValidateWorkerConfig added in v1.6.0

func ValidateWorkerConfig(workerConfig *gcp.WorkerConfig, dataVolumes []core.DataVolume) field.ErrorList

ValidateWorkerConfig validates a WorkerConfig object.

func ValidateWorkers added in v1.4.0

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

ValidateWorkers validates the workers of a Shoot.

func ValidateWorkersUpdate added in v1.4.0

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