validation

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ReservedCIDR is a IPV4 CIDR reserved for AliCloud internal usage.
	// For example: the meta service endpoint is 100.100.100.200.
	ReservedCIDR = "100.64.0.0/10"
)

Variables

This section is empty.

Functions

func ValidateCloudProfileConfig

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

ValidateCloudProfileConfig validates a CloudProfileConfig object.

func ValidateCloudProviderSecret added in v1.25.0

func ValidateCloudProviderSecret(secret *corev1.Secret) error

ValidateCloudProviderSecret checks whether the given secret contains a valid Alicloud access keys.

func ValidateControlPlaneConfig

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

ValidateControlPlaneConfig validates a ControlPlaneConfig object.

func ValidateEnhancedNatGateway added in v1.34.0

func ValidateEnhancedNatGateway(natGatewayTargetZone apisalicloud.Zone, validZones []string, fldPath *field.Path) field.ErrorList

ValidateEnhancedNatGateway validates whether enhanced natGateway is available in given zone

func ValidateInfrastructureConfig

func ValidateInfrastructureConfig(infra *apisalicloud.InfrastructureConfig, networking *core.Networking, natGatewayZones []string) field.ErrorList

ValidateInfrastructureConfig validates a InfrastructureConfig object.

func ValidateInfrastructureConfigUpdate

func ValidateInfrastructureConfigUpdate(oldConfig, newConfig *apisalicloud.InfrastructureConfig) field.ErrorList

ValidateInfrastructureConfigUpdate validates a InfrastructureConfig object.

func ValidateNatGatewayConfig added in v1.12.0

func ValidateNatGatewayConfig(natGateway *apisalicloud.NatGatewayConfig, fldPath *field.Path) field.ErrorList

ValidateNatGatewayConfig validates a NatGatewayConfig object.

func ValidateNetworkZonesConfig added in v1.14.0

func ValidateNetworkZonesConfig(newZones, oldZones []apisalicloud.Zone, fldPath *field.Path) field.ErrorList

ValidateNetworkZonesConfig validates a Zone slice.

func ValidateNetworking added in v1.7.0

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

ValidateNetworking validates the network settings of a Shoot during creation.

func ValidateNetworkingUpdate added in v1.21.0

func ValidateNetworkingUpdate(oldNetworking, newNetworking *core.Networking, fldPath *field.Path) field.ErrorList

ValidateNetworkingUpdate validates the network setting of a Shoot during update. The network CIDR settings should be immutable.

func ValidateWorkers added in v1.7.0

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

ValidateWorkers validates the workers of a Shoot.

func ValidateWorkersUpdate added in v1.7.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