validation

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotMoreThan100Percent

func IsNotMoreThan100Percent(intOrStringValue *intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ShouldEnforceImmutability added in v0.34.0

func ShouldEnforceImmutability(new, old []string) bool

ShouldEnforceImmutability compares the given slices and returns if a immutability should be enforced. It mainly checks if the order of the same elements in `new` and `old` is the same, i.e. only an addition of elements to `new` is allowed.

func ValidateCloudProfile

func ValidateCloudProfile(cloudProfile *garden.CloudProfile) field.ErrorList

ValidateCloudProfile validates a CloudProfile object.

func ValidateCloudProfileSpec

func ValidateCloudProfileSpec(spec *garden.CloudProfileSpec, fldPath *field.Path) field.ErrorList

ValidateCloudProfileSpec validates the specification of a CloudProfile object.

func ValidateCloudProfileUpdate

func ValidateCloudProfileUpdate(newProfile, oldProfile *garden.CloudProfile) field.ErrorList

ValidateCloudProfileUpdate validates a CloudProfile object before an update.

func ValidateClusterAutoscaler

func ValidateClusterAutoscaler(autoScaler garden.ClusterAutoscaler, fldPath *field.Path) field.ErrorList

ValidateClusterAutoscaler validates the given ClusterAutoscaler fields.

func ValidateHibernation

func ValidateHibernation(hibernation *garden.Hibernation, fldPath *field.Path) field.ErrorList

ValidateHibernation validates a Hibernation object.

func ValidateHibernationCronSpec

func ValidateHibernationCronSpec(seenSpecs sets.String, spec string, fldPath *field.Path) field.ErrorList

func ValidateHibernationSchedule

func ValidateHibernationSchedule(seenSpecs sets.String, schedule *garden.HibernationSchedule, fldPath *field.Path) field.ErrorList

ValidateHibernationSchedule validates the correctness of a HibernationSchedule. It checks whether the set start and end time are valid cron specs.

func ValidateHibernationScheduleLocation

func ValidateHibernationScheduleLocation(location string, fldPath *field.Path) field.ErrorList

ValidateHibernationScheduleLocation validates that the location of a HibernationSchedule is correct.

func ValidateHibernationSchedules

func ValidateHibernationSchedules(schedules []garden.HibernationSchedule, fldPath *field.Path) field.ErrorList

func ValidateKubeletConfig

func ValidateKubeletConfig(kubeletConfig garden.KubeletConfig, fldPath *field.Path) field.ErrorList

ValidateKubeletConfig validates the KubeletConfig object.

func ValidateName

func ValidateName(name string, prefix bool) []string

ValidateName is a helper function for validating that a name is a DNS sub domain.

func ValidateNodeCIDRMaskWithMaxPod

func ValidateNodeCIDRMaskWithMaxPod(maxPod int32, nodeCIDRMaskSize int) field.ErrorList

ValidateNodeCIDRMaskWithMaxPod validates if the Pod Network has enough ip addresses (configured via the NodeCIDRMask on the kube controller manager) to support the highest max pod setting on the shoot

func ValidatePositiveDuration

func ValidatePositiveDuration(duration *metav1.Duration, fldPath *field.Path) field.ErrorList

ValidatePositiveDuration validates that a duration is positive.

func ValidatePositiveIntOrPercent

func ValidatePositiveIntOrPercent(intOrPercent *intstr.IntOrString, fldPath *field.Path) field.ErrorList

func ValidateProject

func ValidateProject(project *garden.Project) field.ErrorList

ValidateProject validates a Project object.

func ValidateProjectSpec

func ValidateProjectSpec(projectSpec *garden.ProjectSpec, fldPath *field.Path) field.ErrorList

ValidateProjectSpec validates the specification of a Project object.

func ValidateProjectStatusUpdate

func ValidateProjectStatusUpdate(newProject, oldProject *garden.Project) field.ErrorList

ValidateProjectStatusUpdate validates the status field of a Project object.

func ValidateProjectUpdate

func ValidateProjectUpdate(newProject, oldProject *garden.Project) field.ErrorList

ValidateProjectUpdate validates a Project object before an update.

func ValidateQuota

func ValidateQuota(quota *garden.Quota) field.ErrorList

ValidateQuota validates a Quota object.

func ValidateQuotaSpec

func ValidateQuotaSpec(quotaSpec *garden.QuotaSpec, fldPath *field.Path) field.ErrorList

ValidateQuotaSpec validates the specification of a Quota object.

func ValidateQuotaStatusUpdate

func ValidateQuotaStatusUpdate(newQuota, oldQuota *garden.Quota) field.ErrorList

ValidateQuotaStatusUpdate validates the status field of a Quota object.

func ValidateQuotaUpdate

func ValidateQuotaUpdate(newQuota, oldQuota *garden.Quota) field.ErrorList

ValidateQuotaUpdate validates a Quota object before an update.

func ValidateResourceQuantityOrPercent

func ValidateResourceQuantityOrPercent(valuePtr *string, fldPath *field.Path, key string) field.ErrorList

ValidateResourceQuantityOrPercent checks if a value can be parsed to either a resource.quantity, a positive int or percent.

func ValidateSecretBinding

func ValidateSecretBinding(binding *garden.SecretBinding) field.ErrorList

ValidateSecretBinding validates a SecretBinding object.

func ValidateSecretBindingUpdate

func ValidateSecretBindingUpdate(newBinding, oldBinding *garden.SecretBinding) field.ErrorList

ValidateSecretBindingUpdate validates a SecretBinding object before an update.

func ValidateSeed

func ValidateSeed(seed *garden.Seed) field.ErrorList

ValidateSeed validates a Seed object.

func ValidateSeedAnnotation

func ValidateSeedAnnotation(annotations map[string]string, fldPath *field.Path) field.ErrorList

ValidateSeedAnnotation validates the annotations of seed

func ValidateSeedSpec

func ValidateSeedSpec(seedSpec *garden.SeedSpec, fldPath *field.Path) field.ErrorList

ValidateSeedSpec validates the specification of a Seed object.

func ValidateSeedSpecUpdate

func ValidateSeedSpecUpdate(newSeedSpec, oldSeedSpec *garden.SeedSpec, fldPath *field.Path) field.ErrorList

ValidateSeedSpecUpdate validates the specification updates of a Seed object.

func ValidateSeedStatusUpdate

func ValidateSeedStatusUpdate(newSeed, oldSeed *garden.Seed) field.ErrorList

ValidateSeedStatusUpdate validates the status field of a Seed object.

func ValidateSeedUpdate

func ValidateSeedUpdate(newSeed, oldSeed *garden.Seed) field.ErrorList

ValidateSeedUpdate validates a Seed object before an update.

func ValidateShoot

func ValidateShoot(shoot *garden.Shoot) field.ErrorList

ValidateShoot validates a Shoot object.

func ValidateShootSpec

func ValidateShootSpec(meta metav1.ObjectMeta, spec *garden.ShootSpec, fldPath *field.Path) field.ErrorList

ValidateShootSpec validates the specification of a Shoot object.

func ValidateShootSpecUpdate

func ValidateShootSpecUpdate(newSpec, oldSpec *garden.ShootSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

ValidateShootSpecUpdate validates the specification of a Shoot object.

func ValidateShootStatusUpdate

func ValidateShootStatusUpdate(newStatus, oldStatus garden.ShootStatus) field.ErrorList

ValidateShootStatusUpdate validates the status field of a Shoot object.

func ValidateShootUpdate

func ValidateShootUpdate(newShoot, oldShoot *garden.Shoot) field.ErrorList

ValidateShootUpdate validates a Shoot object before an update.

func ValidateSubject

func ValidateSubject(subject rbacv1.Subject, fldPath *field.Path) field.ErrorList

ValidateSubject validates the subject representing the owner.

func ValidateWorker

func ValidateWorker(worker garden.Worker, fldPath *field.Path) field.ErrorList

ValidateWorker validates the worker object.

func ValidateWorkers

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

ValidateWorkers validates worker objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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