gardener: github.com/gardener/gardener/pkg/apis/core/validation Index | Files

package validation

import "github.com/gardener/gardener/pkg/apis/core/validation"

Index

Package Files

backupbucket.go backupentry.go cloudprofile.go controllerinstallation.go controllerregistration.go plant.go project.go quota.go secretbinding.go seed.go shoot.go shootstate.go utils.go

Constants

const PodPIDsLimitMinimum int64 = 100

PodPIDsLimitMinimum is a constant for the minimum value for the podPIDsLimit field.

func IsNotMoreThan100Percent Uses

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

IsNotMoreThan100Percent validates an int or string object and ensures it is not more than 100%.

func ShouldEnforceImmutability Uses

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 ValidateBackupBucket Uses

func ValidateBackupBucket(backupBucket *core.BackupBucket) field.ErrorList

ValidateBackupBucket validates a BackupBucket object.

func ValidateBackupBucketSpec Uses

func ValidateBackupBucketSpec(spec *core.BackupBucketSpec, fldPath *field.Path) field.ErrorList

ValidateBackupBucketSpec validates the specification of a BackupBucket object.

func ValidateBackupBucketSpecUpdate Uses

func ValidateBackupBucketSpecUpdate(newSpec, oldSpec *core.BackupBucketSpec, fldPath *field.Path) field.ErrorList

ValidateBackupBucketSpecUpdate validates the specification of a BackupBucket object.

func ValidateBackupBucketStatusUpdate Uses

func ValidateBackupBucketStatusUpdate(newBackupBucket, oldBackupBucket *core.BackupBucket) field.ErrorList

ValidateBackupBucketStatusUpdate validates the status field of a BackupBucket object.

func ValidateBackupBucketUpdate Uses

func ValidateBackupBucketUpdate(newBackupBucket, oldBackupBucket *core.BackupBucket) field.ErrorList

ValidateBackupBucketUpdate validates a BackupBucket object before an update.

func ValidateBackupEntry Uses

func ValidateBackupEntry(backupEntry *core.BackupEntry) field.ErrorList

ValidateBackupEntry validates a BackupEntry object.

func ValidateBackupEntrySpec Uses

func ValidateBackupEntrySpec(spec *core.BackupEntrySpec, fldPath *field.Path) field.ErrorList

ValidateBackupEntrySpec validates the specification of a BackupEntry object.

func ValidateBackupEntrySpecUpdate Uses

func ValidateBackupEntrySpecUpdate(newSpec, oldSpec *core.BackupEntrySpec, fldPath *field.Path) field.ErrorList

ValidateBackupEntrySpecUpdate validates the specification of a BackupEntry object.

func ValidateBackupEntryStatusUpdate Uses

func ValidateBackupEntryStatusUpdate(newBackupEntry, oldBackupEntry *core.BackupEntry) field.ErrorList

ValidateBackupEntryStatusUpdate validates the status field of a BackupEntry object.

func ValidateBackupEntryUpdate Uses

func ValidateBackupEntryUpdate(newBackupEntry, oldBackupEntry *core.BackupEntry) field.ErrorList

ValidateBackupEntryUpdate validates a BackupEntry object before an update.

func ValidateCloudProfile Uses

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

ValidateCloudProfile validates a CloudProfile object.

func ValidateCloudProfileSpec Uses

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

ValidateCloudProfileSpec validates the specification of a CloudProfile object.

func ValidateCloudProfileUpdate Uses

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

ValidateCloudProfileUpdate validates a CloudProfile object before an update.

func ValidateClusterAutoscaler Uses

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

ValidateClusterAutoscaler validates the given ClusterAutoscaler fields.

func ValidateControllerInstallation Uses

func ValidateControllerInstallation(controllerInstallation *core.ControllerInstallation) field.ErrorList

ValidateControllerInstallation validates a ControllerInstallation object.

func ValidateControllerInstallationSpec Uses

func ValidateControllerInstallationSpec(spec *core.ControllerInstallationSpec, fldPath *field.Path) field.ErrorList

ValidateControllerInstallationSpec validates the specification of a ControllerInstallation object.

func ValidateControllerInstallationSpecUpdate Uses

func ValidateControllerInstallationSpecUpdate(new, old *core.ControllerInstallationSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

ValidateControllerInstallationSpecUpdate validates the spec of a ControllerInstallation object before an update.

func ValidateControllerInstallationStatus Uses

func ValidateControllerInstallationStatus(spec *core.ControllerInstallationStatus, fldPath *field.Path) field.ErrorList

ValidateControllerInstallationStatus validates the status of a ControllerInstallation object.

func ValidateControllerInstallationStatusUpdate Uses

func ValidateControllerInstallationStatusUpdate(newStatus, oldStatus core.ControllerInstallationStatus) field.ErrorList

ValidateControllerInstallationStatusUpdate validates the status field of a ControllerInstallation object.

func ValidateControllerInstallationUpdate Uses

func ValidateControllerInstallationUpdate(new, old *core.ControllerInstallation) field.ErrorList

ValidateControllerInstallationUpdate validates a ControllerInstallation object before an update.

func ValidateControllerRegistration Uses

func ValidateControllerRegistration(controllerRegistration *core.ControllerRegistration) field.ErrorList

ValidateControllerRegistration validates a ControllerRegistration object.

func ValidateControllerRegistrationSpec Uses

func ValidateControllerRegistrationSpec(spec *core.ControllerRegistrationSpec, fldPath *field.Path) field.ErrorList

ValidateControllerRegistrationSpec validates the specification of a ControllerRegistration object.

func ValidateControllerRegistrationSpecUpdate Uses

func ValidateControllerRegistrationSpecUpdate(new, old *core.ControllerRegistrationSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

func ValidateControllerRegistrationUpdate Uses

func ValidateControllerRegistrationUpdate(new, old *core.ControllerRegistration) field.ErrorList

ValidateControllerRegistrationUpdate validates a ControllerRegistration object before an update.

func ValidateHibernation Uses

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

ValidateHibernation validates a Hibernation object.

func ValidateHibernationCronSpec Uses

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

ValidateHibernationCronSpec validates a cron specification of a hibernation schedule.

func ValidateHibernationSchedule Uses

func ValidateHibernationSchedule(seenSpecs sets.String, schedule *core.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 Uses

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

ValidateHibernationScheduleLocation validates that the location of a HibernationSchedule is correct.

func ValidateHibernationSchedules Uses

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

ValidateHibernationSchedules validates a list of hibernation schedules.

func ValidateKubeletConfig Uses

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

ValidateKubeletConfig validates the KubeletConfig object.

func ValidateName Uses

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

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

func ValidateNodeCIDRMaskWithMaxPod Uses

func ValidateNodeCIDRMaskWithMaxPod(maxPod int32, nodeCIDRMaskSize int32) 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 ValidatePlant Uses

func ValidatePlant(plant *core.Plant) field.ErrorList

ValidatePlant validates a Plant object.

func ValidatePlantSpec Uses

func ValidatePlantSpec(spec *core.PlantSpec, fldPath *field.Path) field.ErrorList

ValidatePlantSpec validates the specification of a Plant object.

func ValidatePlantSpecUpdate Uses

func ValidatePlantSpecUpdate(new, old *core.PlantSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList

ValidatePlantSpecUpdate validates the spec of a Plant object before an update.

func ValidatePlantStatus Uses

func ValidatePlantStatus(spec *core.PlantStatus, fldPath *field.Path) field.ErrorList

ValidatePlantStatus validates the status of a Plant object.

func ValidatePlantStatusUpdate Uses

func ValidatePlantStatusUpdate(newStatus, oldStatus core.PlantStatus) field.ErrorList

ValidatePlantStatusUpdate validates the status field of a Plant object.

func ValidatePlantUpdate Uses

func ValidatePlantUpdate(new, old *core.Plant) field.ErrorList

ValidatePlantUpdate validates a Plant object before an update.

func ValidatePositiveDuration Uses

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

ValidatePositiveDuration validates that a duration is positive.

func ValidatePositiveIntOrPercent Uses

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

ValidatePositiveIntOrPercent validates a int or string object and ensures it is positive.

func ValidateProject Uses

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

ValidateProject validates a Project object.

func ValidateProjectSpec Uses

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

ValidateProjectSpec validates the specification of a Project object.

func ValidateProjectStatusUpdate Uses

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

ValidateProjectStatusUpdate validates the status field of a Project object.

func ValidateProjectUpdate Uses

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

ValidateProjectUpdate validates a Project object before an update.

func ValidateQuota Uses

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

ValidateQuota validates a Quota object.

func ValidateQuotaSpec Uses

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

ValidateQuotaSpec validates the specification of a Quota object.

func ValidateQuotaStatusUpdate Uses

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

ValidateQuotaStatusUpdate validates the status field of a Quota object.

func ValidateQuotaUpdate Uses

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

ValidateQuotaUpdate validates a Quota object before an update.

func ValidateResourceQuantityOrPercent Uses

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 Uses

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

ValidateSecretBinding validates a SecretBinding object.

func ValidateSecretBindingUpdate Uses

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

ValidateSecretBindingUpdate validates a SecretBinding object before an update.

func ValidateSeed Uses

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

ValidateSeed validates a Seed object.

func ValidateSeedAnnotation Uses

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

ValidateSeedAnnotation validates the annotations of seed

func ValidateSeedSpec Uses

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

ValidateSeedSpec validates the specification of a Seed object.

func ValidateSeedSpecUpdate Uses

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

ValidateSeedSpecUpdate validates the specification updates of a Seed object.

func ValidateSeedStatusUpdate Uses

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

ValidateSeedStatusUpdate validates the status field of a Seed object.

func ValidateSeedUpdate Uses

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

ValidateSeedUpdate validates a Seed object before an update.

func ValidateShoot Uses

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

ValidateShoot validates a Shoot object.

func ValidateShootSpec Uses

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

ValidateShootSpec validates the specification of a Shoot object.

func ValidateShootSpecUpdate Uses

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

ValidateShootSpecUpdate validates the specification of a Shoot object.

func ValidateShootState Uses

func ValidateShootState(shootState *core.ShootState) field.ErrorList

ValidateShootState validates a ShootState object

func ValidateShootStateSpec Uses

func ValidateShootStateSpec(shootStateSpec *core.ShootStateSpec, fldPath *field.Path) field.ErrorList

ValidateShootStateSpec validates the spec field of a ShootState object.

func ValidateShootStateSpecUpdate Uses

func ValidateShootStateSpecUpdate(newShootState, oldShootState *core.ShootStateSpec) field.ErrorList

ValidateShootStateSpecUpdate validates the update to the specification of a ShootState

func ValidateShootStateUpdate Uses

func ValidateShootStateUpdate(newShootState, oldShootState *core.ShootState) field.ErrorList

ValidateShootStateUpdate validates an update to a ShootState object

func ValidateShootStatusUpdate Uses

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

ValidateShootStatusUpdate validates the status field of a Shoot object.

func ValidateShootUpdate Uses

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

ValidateShootUpdate validates a Shoot object before an update.

func ValidateSubject Uses

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

ValidateSubject validates the subject representing the owner.

func ValidateWorker Uses

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

ValidateWorker validates the worker object.

func ValidateWorkers Uses

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

ValidateWorkers validates worker objects.

Package validation imports 29 packages (graph) and is imported by 12 packages. Updated 2020-02-18. Refresh now. Tools for package owners.