Documentation
¶
Index ¶
- Constants
- Variables
- func HasDecreasedMaxNodesTotal(newMaxNodesTotal, oldMaxNodesTotal *int32) bool
- func IsNotMoreThan100Percent(intOrStringValue *intstr.IntOrString, fldPath *field.Path) field.ErrorList
- func ProjectMemberId(apiGroup, kind, namespace, name string) string
- func ProjectMemberProperties(member core.ProjectMember) (string, string, string, string, error)
- func ValidateAPIServerLogging(loggingConfig *core.APIServerLogging, fldPath *field.Path) field.ErrorList
- func ValidateAPIServerRequests(requests *core.APIServerRequests, fldPath *field.Path) field.ErrorList
- func ValidateArchitecture(arch *string, fldPath *field.Path) field.ErrorList
- func ValidateAuditPolicyConfigMapReference(ref *corev1.ObjectReference, fldPath *field.Path) field.ErrorList
- func ValidateBackupBucket(backupBucket *core.BackupBucket) field.ErrorList
- func ValidateBackupBucketSpec(spec *core.BackupBucketSpec, fldPath *field.Path) field.ErrorList
- func ValidateBackupBucketSpecUpdate(newSpec, oldSpec *core.BackupBucketSpec, fldPath *field.Path) field.ErrorList
- func ValidateBackupBucketStatusUpdate(_, _ *core.BackupBucket) field.ErrorList
- func ValidateBackupBucketUpdate(newBackupBucket, oldBackupBucket *core.BackupBucket) field.ErrorList
- func ValidateBackupEntry(backupEntry *core.BackupEntry) field.ErrorList
- func ValidateBackupEntrySpec(spec *core.BackupEntrySpec, namespace string, fldPath *field.Path) field.ErrorList
- func ValidateBackupEntrySpecUpdate(_, _ *core.BackupEntrySpec, _ *field.Path) field.ErrorList
- func ValidateBackupEntryStatusUpdate(_, _ *core.BackupEntry) field.ErrorList
- func ValidateBackupEntryUpdate(newBackupEntry, oldBackupEntry *core.BackupEntry) field.ErrorList
- func ValidateCRI(CRI *core.CRI, fldPath *field.Path) field.ErrorList
- func ValidateCloudProfile(cloudProfile *core.CloudProfile) field.ErrorList
- func ValidateCloudProfileExpirableVersionsUpdate(new, old []core.ExpirableVersion, fldPath *field.Path) field.ErrorList
- func ValidateCloudProfileMachineImages(machineImages []core.MachineImage, capabilities core.Capabilities, ...) field.ErrorList
- func ValidateCloudProfileReference(cloudProfileReference *core.CloudProfileReference, cloudProfileName *string, ...) field.ErrorList
- func ValidateCloudProfileSpec(spec *core.CloudProfileSpec, fldPath *field.Path) field.ErrorList
- func ValidateCloudProfileSpecUpdate(new, old *core.CloudProfileSpec, fldPath *field.Path) field.ErrorList
- func ValidateCloudProfileStatusUpdate(_, _ *core.CloudProfileStatus) field.ErrorList
- func ValidateCloudProfileUpdate(newProfile, oldProfile *core.CloudProfile) field.ErrorList
- func ValidateClusterAutoscaler(autoScaler core.ClusterAutoscaler, kubernetesVersion string, ...) field.ErrorList
- func ValidateClusterAutoscalerOptions(caOptions *core.ClusterAutoscalerOptions, fldPath *field.Path) field.ErrorList
- func ValidateContainerRuntimes(containerRuntime []core.ContainerRuntime, fldPath *field.Path) field.ErrorList
- func ValidateControlPlaneAutoscaling(autoscaling *core.ControlPlaneAutoscaling, minRequired corev1.ResourceList, ...) field.ErrorList
- func ValidateControllerDeployment(controllerDeployment *core.ControllerDeployment) field.ErrorList
- func ValidateControllerDeploymentUpdate(new, _ *core.ControllerDeployment) field.ErrorList
- func ValidateControllerInstallation(controllerInstallation *core.ControllerInstallation) field.ErrorList
- func ValidateControllerInstallationSpec(spec *core.ControllerInstallationSpec, fldPath *field.Path) field.ErrorList
- func ValidateControllerInstallationSpecUpdate(new, old *core.ControllerInstallationSpec, deletionTimestampSet bool, ...) field.ErrorList
- func ValidateControllerInstallationStatusUpdate(_, _ core.ControllerInstallationStatus) field.ErrorList
- func ValidateControllerInstallationUpdate(new, old *core.ControllerInstallation) field.ErrorList
- func ValidateControllerRegistration(controllerRegistration *core.ControllerRegistration) field.ErrorList
- func ValidateControllerRegistrationSpec(spec *core.ControllerRegistrationSpec, fldPath *field.Path) field.ErrorList
- func ValidateControllerRegistrationSpecUpdate(new, old *core.ControllerRegistrationSpec, deletionTimestampSet bool, ...) field.ErrorList
- func ValidateControllerRegistrationUpdate(new, old *core.ControllerRegistration) field.ErrorList
- func ValidateControllerResources(resources []core.ControllerResource, clusterTypes []core.ClusterType, ...) field.ErrorList
- func ValidateControllerResourcesUpdate(new, old []core.ControllerResource, fldPath *field.Path) field.ErrorList
- func ValidateCoreDNSRewritingCommonSuffixes(commonSuffixes []string, fldPath *field.Path) field.ErrorList
- func ValidateCredentialsRef(ref corev1.ObjectReference, fldPath *field.Path) field.ErrorList
- func ValidateDNS1123Subdomain(value string, fldPath *field.Path) field.ErrorList
- func ValidateEncryptionConfigUpdate(newConfig, oldConfig *core.EncryptionConfig, ...) field.ErrorList
- func ValidateExposureClass(exposureClass *core.ExposureClass) field.ErrorList
- func ValidateExposureClassUpdate(new, old *core.ExposureClass) field.ErrorList
- func ValidateFailureToleranceTypeValue(value core.FailureToleranceType, fldPath *field.Path) field.ErrorList
- func ValidateFinalizersOnCreation(finalizers []string, fldPath *field.Path) field.ErrorList
- func ValidateForceDeletion(newShoot, oldShoot *core.Shoot) field.ErrorList
- func ValidateHelmControllerDeployment(helmControllerDeployment *core.HelmControllerDeployment, fldPath *field.Path) field.ErrorList
- func ValidateHibernation(annotations map[string]string, hibernation *core.Hibernation, ...) field.ErrorList
- func ValidateHibernationCronSpec(seenSpecs sets.Set[string], spec string, fldPath *field.Path) field.ErrorList
- func ValidateHibernationSchedule(seenSpecs sets.Set[string], schedule *core.HibernationSchedule, ...) field.ErrorList
- func ValidateHibernationScheduleLocation(location string, fldPath *field.Path) field.ErrorList
- func ValidateHibernationSchedules(schedules []core.HibernationSchedule, fldPath *field.Path) field.ErrorList
- func ValidateIPFamilies(ipFamilies []core.IPFamily, fldPath *field.Path) field.ErrorList
- func ValidateInPlaceUpdateStrategyOnCreation(shoot *core.Shoot) field.ErrorList
- func ValidateInPlaceUpdates(newShoot, oldShoot *core.Shoot) field.ErrorList
- func ValidateInternalSecret(secret *core.InternalSecret) field.ErrorList
- func ValidateInternalSecretUpdate(newSecret, oldSecret *core.InternalSecret) field.ErrorList
- func ValidateKubeAPIServer(kubeAPIServer *core.KubeAPIServerConfig, kubernetesVersion string, ...) field.ErrorList
- func ValidateKubeControllerManager(kcm *core.KubeControllerManagerConfig, networking *core.Networking, ...) field.ErrorList
- func ValidateKubeletConfig(kubeletConfig core.KubeletConfig, kubernetesVersion string, ...) field.ErrorList
- func ValidateKubernetesVersionUpdate(new, old string, skipMinorVersionAllowed bool, fldPath *field.Path) field.ErrorList
- func ValidateLocalCredentialsRef(ref autoscalingv1.CrossVersionObjectReference, fldPath *field.Path) field.ErrorList
- func ValidateMachineControllerManagerSettingsOptions(mcmOptions *core.MachineControllerManagerSettings, ...) field.ErrorList
- func ValidateMachineImage(image core.MachineImage, capabilities core.Capabilities, ...) field.ErrorList
- func ValidateMachineImageAdditionalConfig(machineVersion core.MachineImageVersion, versionsPath *field.Path, ...) field.ErrorList
- func ValidateMachineImageVersion(image core.MachineImage, machineVersion core.MachineImageVersion, ...) field.ErrorList
- func ValidateMachineImages(machineImages []core.MachineImage, capabilities core.Capabilities, ...) field.ErrorList
- func ValidateMachineType(machineType core.MachineType, names sets.Set[string], ...) field.ErrorList
- func ValidateName(name string, prefix bool) []string
- func ValidateNamespacedCloudProfile(namespacedCloudProfile *core.NamespacedCloudProfile) field.ErrorList
- func ValidateNamespacedCloudProfileSpecUpdate(newProfile, oldProfile *core.NamespacedCloudProfileSpec, fldPath *field.Path) field.ErrorList
- func ValidateNamespacedCloudProfileStatus(spec *core.CloudProfileSpec, fldPath *field.Path) field.ErrorList
- func ValidateNamespacedCloudProfileUpdate(newProfile, oldProfile *core.NamespacedCloudProfile) field.ErrorList
- func ValidateNodeCIDRMaskWithMaxPod(maxPod int32, nodeCIDRMaskSize int32, networking core.Networking) field.ErrorList
- func ValidateOCIRepository(oci *core.OCIRepository, fldPath *field.Path) field.ErrorList
- func ValidateOIDCIssuerURL(issuerURL string, issuerFldPath *field.Path) field.ErrorList
- func ValidateObjectReferenceNameAndNamespace(ref corev1.ObjectReference, fldPath *field.Path, requireNamespace bool) field.ErrorList
- func ValidatePositiveDuration(duration *metav1.Duration, fldPath *field.Path) field.ErrorList
- func ValidatePositiveIntOrPercent(intOrPercent *intstr.IntOrString, fldPath *field.Path) field.ErrorList
- func ValidateProject(project *core.Project) field.ErrorList
- func ValidateProjectDescription(description string, allowInvalidDescription bool, fldPath *field.Path) field.ErrorList
- func ValidateProjectMember(member core.ProjectMember, fldPath *field.Path) field.ErrorList
- func ValidateProjectPurpose(description string, allowInvalidPurpose bool, fldPath *field.Path) field.ErrorList
- func ValidateProjectSpec(projectSpec *core.ProjectSpec, opts projectValidationOptions, ...) field.ErrorList
- func ValidateProjectStatusUpdate(newProject, oldProject *core.Project) field.ErrorList
- func ValidateProjectUpdate(newProject, oldProject *core.Project) field.ErrorList
- func ValidateProjectWithOpts(project *core.Project, opts projectValidationOptions) field.ErrorList
- func ValidateProviderUpdate(newProvider, oldProvider *core.Provider, fldPath *field.Path) field.ErrorList
- func ValidateQuota(quota *core.Quota) field.ErrorList
- func ValidateQuotaSpec(quotaSpec *core.QuotaSpec, fldPath *field.Path) field.ErrorList
- func ValidateQuotaUpdate(newQuota, oldQuota *core.Quota) field.ErrorList
- func ValidateResourceQuantityOrPercent(valuePtr *string, fldPath *field.Path, key string) field.ErrorList
- func ValidateResources(resources []core.NamedResourceReference, fldPath *field.Path, ...) field.ErrorList
- func ValidateSecretBinding(binding *core.SecretBinding) field.ErrorList
- func ValidateSecretBindingProvider(provider *core.SecretBindingProvider) field.ErrorList
- func ValidateSecretBindingUpdate(newBinding, oldBinding *core.SecretBinding) field.ErrorList
- func ValidateSeed(seed *core.Seed) field.ErrorList
- func ValidateSeedSpec(seedSpec *core.SeedSpec, fldPath *field.Path, inTemplate bool) field.ErrorList
- func ValidateSeedSpecUpdate(newSeedSpec, oldSeedSpec *core.SeedSpec, fldPath *field.Path) field.ErrorList
- func ValidateSeedStatusUpdate(newSeed, oldSeed *core.Seed) field.ErrorList
- func ValidateSeedTemplate(seedTemplate *core.SeedTemplate, fldPath *field.Path) field.ErrorList
- func ValidateSeedTemplateUpdate(newSeedTemplate, oldSeedTemplate *core.SeedTemplate, fldPath *field.Path) field.ErrorList
- func ValidateSeedUpdate(newSeed, oldSeed *core.Seed) field.ErrorList
- func ValidateShoot(shoot *core.Shoot) field.ErrorList
- func ValidateShootHAConfig(shoot *core.Shoot) field.ErrorList
- func ValidateShootHAConfigUpdate(newShoot, oldShoot *core.Shoot) field.ErrorList
- func ValidateShootObjectMetaUpdate(_, _ metav1.ObjectMeta, _ *field.Path) field.ErrorList
- func ValidateShootSpec(meta metav1.ObjectMeta, spec *core.ShootSpec, opts shootValidationOptions, ...) field.ErrorList
- func ValidateShootSpecUpdate(newSpec, oldSpec *core.ShootSpec, newObjectMeta metav1.ObjectMeta, ...) field.ErrorList
- func ValidateShootState(shootState *core.ShootState) field.ErrorList
- func ValidateShootStateSpec(shootStateSpec *core.ShootStateSpec, fldPath *field.Path) field.ErrorList
- func ValidateShootStateSpecUpdate(_, _ *core.ShootStateSpec) field.ErrorList
- func ValidateShootStateUpdate(newShootState, oldShootState *core.ShootState) field.ErrorList
- func ValidateShootStatusUpdate(newStatus, oldStatus core.ShootStatus) field.ErrorList
- func ValidateShootTemplate(shootTemplate *core.ShootTemplate, opts KubeAPIServerValidationOptions, ...) field.ErrorList
- func ValidateShootTemplateUpdate(newShootTemplate, oldShootTemplate *core.ShootTemplate, fldPath *field.Path) field.ErrorList
- func ValidateShootUpdate(newShoot, oldShoot *core.Shoot) field.ErrorList
- func ValidateShootWithOpts(shoot *core.Shoot, opts shootValidationOptions) field.ErrorList
- func ValidateSubject(subject rbacv1.Subject, fldPath *field.Path) field.ErrorList
- func ValidateSysctls(sysctls map[string]string, fldPath *field.Path) field.ErrorList
- func ValidateSystemComponentWorkers(workers []core.Worker, fldPath *field.Path) field.ErrorList
- func ValidateSystemComponents(systemComponents *core.SystemComponents, fldPath *field.Path, workerless bool) field.ErrorList
- func ValidateTolerations(tolerations []core.Toleration, fldPath *field.Path) field.ErrorList
- func ValidateTolerationsAgainstAllowlist(tolerations, allowlist []core.Toleration, fldPath *field.Path) field.ErrorList
- func ValidateVerticalPodAutoscaler(autoScaler core.VerticalPodAutoscaler, fldPath *field.Path) field.ErrorList
- func ValidateVerticalPodAutoscalerMaxAllowed(maxAllowed corev1.ResourceList, fldPath *field.Path) field.ErrorList
- func ValidateWatchCacheSizes(sizes *core.WatchCacheSizes, kubernetesVersion string, fldPath *field.Path) field.ErrorList
- func ValidateWorker(worker core.Worker, kubernetes core.Kubernetes, ...) field.ErrorList
- func ValidateWorkerControlPlane(controlPlane *core.WorkerControlPlane, ...) field.ErrorList
- func ValidateWorkers(workers []core.Worker, fldPath *field.Path) field.ErrorList
- type KubeAPIServerValidationOptions
Constants ¶
const PodPIDsLimitMinimum int64 = 100
PodPIDsLimitMinimum is a constant for the minimum value for the podPIDsLimit field.
Variables ¶
var ( // ForbiddenShootFinalizersOnCreation is a list of finalizers which are forbidden to be specified on Shoot creation. ForbiddenShootFinalizersOnCreation = sets.New( gardencorev1beta1.GardenerName, v1beta1constants.ReferenceProtectionFinalizerName, ) )
var ValidateInternalSecretName = apivalidation.NameIsDNSSubdomain
ValidateInternalSecretName can be used to check whether the given secret name is valid. Prefix indicates this name will be used as part of generation, in which case trailing dashes are allowed.
Functions ¶
func HasDecreasedMaxNodesTotal ¶
HasDecreasedMaxNodesTotal checks whether the new maxNodesTotal has been decreased.
func IsNotMoreThan100Percent ¶
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 ProjectMemberId ¶
ProjectMemberId returns an internal ID for the project member.
func ProjectMemberProperties ¶
ProjectMemberProperties returns the properties for the given project member.
func ValidateAPIServerLogging ¶
func ValidateAPIServerLogging(loggingConfig *core.APIServerLogging, fldPath *field.Path) field.ErrorList
ValidateAPIServerLogging validates the given KubeAPIServer Logging fields.
func ValidateAPIServerRequests ¶
func ValidateAPIServerRequests(requests *core.APIServerRequests, fldPath *field.Path) field.ErrorList
ValidateAPIServerRequests validates the given KubeAPIServer request fields.
func ValidateArchitecture ¶
ValidateArchitecture validates the CPU architecture of the machines in this worker pool.
func ValidateAuditPolicyConfigMapReference ¶
func ValidateAuditPolicyConfigMapReference(ref *corev1.ObjectReference, fldPath *field.Path) field.ErrorList
ValidateAuditPolicyConfigMapReference validates the audit policy config map reference.
func ValidateBackupBucket ¶
func ValidateBackupBucket(backupBucket *core.BackupBucket) field.ErrorList
ValidateBackupBucket validates a BackupBucket object.
func ValidateBackupBucketSpec ¶
ValidateBackupBucketSpec validates the specification of a BackupBucket object.
func ValidateBackupBucketSpecUpdate ¶
func ValidateBackupBucketSpecUpdate(newSpec, oldSpec *core.BackupBucketSpec, fldPath *field.Path) field.ErrorList
ValidateBackupBucketSpecUpdate validates the specification of a BackupBucket object.
func ValidateBackupBucketStatusUpdate ¶
func ValidateBackupBucketStatusUpdate(_, _ *core.BackupBucket) field.ErrorList
ValidateBackupBucketStatusUpdate validates the status field of a BackupBucket object.
func ValidateBackupBucketUpdate ¶
func ValidateBackupBucketUpdate(newBackupBucket, oldBackupBucket *core.BackupBucket) field.ErrorList
ValidateBackupBucketUpdate validates a BackupBucket object before an update.
func ValidateBackupEntry ¶
func ValidateBackupEntry(backupEntry *core.BackupEntry) field.ErrorList
ValidateBackupEntry validates a BackupEntry object.
func ValidateBackupEntrySpec ¶
func ValidateBackupEntrySpec(spec *core.BackupEntrySpec, namespace string, fldPath *field.Path) field.ErrorList
ValidateBackupEntrySpec validates the specification of a BackupEntry object.
func ValidateBackupEntrySpecUpdate ¶
ValidateBackupEntrySpecUpdate validates the specification of a BackupEntry object.
func ValidateBackupEntryStatusUpdate ¶
func ValidateBackupEntryStatusUpdate(_, _ *core.BackupEntry) field.ErrorList
ValidateBackupEntryStatusUpdate validates the status field of a BackupEntry object.
func ValidateBackupEntryUpdate ¶
func ValidateBackupEntryUpdate(newBackupEntry, oldBackupEntry *core.BackupEntry) field.ErrorList
ValidateBackupEntryUpdate validates a BackupEntry object before an update.
func ValidateCRI ¶
ValidateCRI validates container runtime interface name and its container runtimes
func ValidateCloudProfile ¶
func ValidateCloudProfile(cloudProfile *core.CloudProfile) field.ErrorList
ValidateCloudProfile validates a CloudProfile object.
func ValidateCloudProfileExpirableVersionsUpdate ¶
func ValidateCloudProfileExpirableVersionsUpdate(new, old []core.ExpirableVersion, fldPath *field.Path) field.ErrorList
ValidateCloudProfileExpirableVersionsUpdate validates the expirable versions update of a CloudProfile expirable version
func ValidateCloudProfileMachineImages ¶
func ValidateCloudProfileMachineImages(machineImages []core.MachineImage, capabilities core.Capabilities, fldPath *field.Path) field.ErrorList
ValidateCloudProfileMachineImages validates the machine images of a CloudProfile object.
func ValidateCloudProfileReference ¶
func ValidateCloudProfileReference(cloudProfileReference *core.CloudProfileReference, cloudProfileName *string, kubernetesVersion string, fldPath *field.Path) field.ErrorList
ValidateCloudProfileReference validates the given CloudProfileReference fields.
func ValidateCloudProfileSpec ¶
ValidateCloudProfileSpec validates the specification of a CloudProfile object.
func ValidateCloudProfileSpecUpdate ¶
func ValidateCloudProfileSpecUpdate(new, old *core.CloudProfileSpec, fldPath *field.Path) field.ErrorList
ValidateCloudProfileSpecUpdate validates the spec update of a CloudProfile
func ValidateCloudProfileStatusUpdate ¶
func ValidateCloudProfileStatusUpdate(_, _ *core.CloudProfileStatus) field.ErrorList
ValidateCloudProfileStatusUpdate validates the status field of a cloudProfile object.
func ValidateCloudProfileUpdate ¶
func ValidateCloudProfileUpdate(newProfile, oldProfile *core.CloudProfile) field.ErrorList
ValidateCloudProfileUpdate validates a CloudProfile object before an update.
func ValidateClusterAutoscaler ¶
func ValidateClusterAutoscaler(autoScaler core.ClusterAutoscaler, kubernetesVersion string, fldPath *field.Path) field.ErrorList
ValidateClusterAutoscaler validates the given ClusterAutoscaler fields.
func ValidateClusterAutoscalerOptions ¶
func ValidateClusterAutoscalerOptions(caOptions *core.ClusterAutoscalerOptions, fldPath *field.Path) field.ErrorList
ValidateClusterAutoscalerOptions validates the cluster autoscaler options of worker pools.
func ValidateContainerRuntimes ¶
func ValidateContainerRuntimes(containerRuntime []core.ContainerRuntime, fldPath *field.Path) field.ErrorList
ValidateContainerRuntimes validates the given container runtimes
func ValidateControlPlaneAutoscaling ¶
func ValidateControlPlaneAutoscaling(autoscaling *core.ControlPlaneAutoscaling, minRequired corev1.ResourceList, fldPath *field.Path) field.ErrorList
ValidateControlPlaneAutoscaling validates the given auto-scaling configuration.
func ValidateControllerDeployment ¶
func ValidateControllerDeployment(controllerDeployment *core.ControllerDeployment) field.ErrorList
ValidateControllerDeployment validates a ControllerDeployment object.
func ValidateControllerDeploymentUpdate ¶
func ValidateControllerDeploymentUpdate(new, _ *core.ControllerDeployment) field.ErrorList
ValidateControllerDeploymentUpdate validates a ControllerDeployment object before an update.
func ValidateControllerInstallation ¶
func ValidateControllerInstallation(controllerInstallation *core.ControllerInstallation) field.ErrorList
ValidateControllerInstallation validates a ControllerInstallation object.
func ValidateControllerInstallationSpec ¶
func ValidateControllerInstallationSpec(spec *core.ControllerInstallationSpec, fldPath *field.Path) field.ErrorList
ValidateControllerInstallationSpec validates the specification of a ControllerInstallation object.
func ValidateControllerInstallationSpecUpdate ¶
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 ValidateControllerInstallationStatusUpdate ¶
func ValidateControllerInstallationStatusUpdate(_, _ core.ControllerInstallationStatus) field.ErrorList
ValidateControllerInstallationStatusUpdate validates the status field of a ControllerInstallation object.
func ValidateControllerInstallationUpdate ¶
func ValidateControllerInstallationUpdate(new, old *core.ControllerInstallation) field.ErrorList
ValidateControllerInstallationUpdate validates a ControllerInstallation object before an update.
func ValidateControllerRegistration ¶
func ValidateControllerRegistration(controllerRegistration *core.ControllerRegistration) field.ErrorList
ValidateControllerRegistration validates a ControllerRegistration object.
func ValidateControllerRegistrationSpec ¶
func ValidateControllerRegistrationSpec(spec *core.ControllerRegistrationSpec, fldPath *field.Path) field.ErrorList
ValidateControllerRegistrationSpec validates the specification of a ControllerRegistration object.
func ValidateControllerRegistrationSpecUpdate ¶
func ValidateControllerRegistrationSpecUpdate(new, old *core.ControllerRegistrationSpec, deletionTimestampSet bool, fldPath *field.Path) field.ErrorList
ValidateControllerRegistrationSpecUpdate validates a ControllerRegistration spec before an update.
func ValidateControllerRegistrationUpdate ¶
func ValidateControllerRegistrationUpdate(new, old *core.ControllerRegistration) field.ErrorList
ValidateControllerRegistrationUpdate validates a ControllerRegistration object before an update.
func ValidateControllerResources ¶
func ValidateControllerResources(resources []core.ControllerResource, clusterTypes []core.ClusterType, resourcesPath *field.Path) field.ErrorList
ValidateControllerResources validates the provided list of ControllerResource objects.
func ValidateControllerResourcesUpdate ¶
func ValidateControllerResourcesUpdate(new, old []core.ControllerResource, fldPath *field.Path) field.ErrorList
ValidateControllerResourcesUpdate validates the update of ControllerResource objects.
func ValidateCoreDNSRewritingCommonSuffixes ¶
func ValidateCoreDNSRewritingCommonSuffixes(commonSuffixes []string, fldPath *field.Path) field.ErrorList
ValidateCoreDNSRewritingCommonSuffixes validates the given common suffixes used for DNS rewriting.
func ValidateCredentialsRef ¶
ValidateCredentialsRef ensures that a resource of GVK v1.Secret, core.gardener.cloud/v1beta1.InternalSecret, or security.gardener.cloud/v1alpha1.WorkloadIdentity is referred, and its name and namespace are properly set.
func ValidateDNS1123Subdomain ¶
ValidateDNS1123Subdomain validates that a name is a proper DNS subdomain.
func ValidateEncryptionConfigUpdate ¶
func ValidateEncryptionConfigUpdate(newConfig, oldConfig *core.EncryptionConfig, currentEncryptedResources sets.Set[schema.GroupResource], etcdEncryptionKeyRotation *core.ETCDEncryptionKeyRotation, isClusterInHibernation bool, fldPath *field.Path) field.ErrorList
ValidateEncryptionConfigUpdate validates the updates to the KubeAPIServer encryption configuration.
func ValidateExposureClass ¶
func ValidateExposureClass(exposureClass *core.ExposureClass) field.ErrorList
ValidateExposureClass validates a ExposureClass object.
func ValidateExposureClassUpdate ¶
func ValidateExposureClassUpdate(new, old *core.ExposureClass) field.ErrorList
ValidateExposureClassUpdate validates a ExposureClass object before an update.
func ValidateFailureToleranceTypeValue ¶
func ValidateFailureToleranceTypeValue(value core.FailureToleranceType, fldPath *field.Path) field.ErrorList
ValidateFailureToleranceTypeValue validates if the passed value is a valid failureToleranceType.
func ValidateFinalizersOnCreation ¶
ValidateFinalizersOnCreation validates the finalizers of a Shoot object.
func ValidateForceDeletion ¶
ValidateForceDeletion validates the addition of force-deletion annotation on the Shoot.
func ValidateHelmControllerDeployment ¶
func ValidateHelmControllerDeployment(helmControllerDeployment *core.HelmControllerDeployment, fldPath *field.Path) field.ErrorList
ValidateHelmControllerDeployment validates Helm controller deployment configs.
func ValidateHibernation ¶
func ValidateHibernation(annotations map[string]string, hibernation *core.Hibernation, fldPath *field.Path) field.ErrorList
ValidateHibernation validates a Hibernation object.
func ValidateHibernationCronSpec ¶
func ValidateHibernationCronSpec(seenSpecs sets.Set[string], spec string, fldPath *field.Path) field.ErrorList
ValidateHibernationCronSpec validates a cron specification of a hibernation schedule.
func ValidateHibernationSchedule ¶
func ValidateHibernationSchedule(seenSpecs sets.Set[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 ¶
ValidateHibernationScheduleLocation validates that the location of a HibernationSchedule is correct.
func ValidateHibernationSchedules ¶
func ValidateHibernationSchedules(schedules []core.HibernationSchedule, fldPath *field.Path) field.ErrorList
ValidateHibernationSchedules validates a list of hibernation schedules.
func ValidateIPFamilies ¶
ValidateIPFamilies validates the given list of IP families for valid values and combinations.
func ValidateInPlaceUpdateStrategyOnCreation ¶
ValidateInPlaceUpdateStrategyOnCreation validates whether the Shoot is using any workers with in-place update strategy when the InPlaceNodeUpdates feature gate is disabled.
func ValidateInPlaceUpdates ¶
ValidateInPlaceUpdates validates the updates of the worker pools with in-place update strategy of a Shoot.
func ValidateInternalSecret ¶
func ValidateInternalSecret(secret *core.InternalSecret) field.ErrorList
ValidateInternalSecret tests if required fields in the InternalSecret are set.
func ValidateInternalSecretUpdate ¶
func ValidateInternalSecretUpdate(newSecret, oldSecret *core.InternalSecret) field.ErrorList
ValidateInternalSecretUpdate tests if required fields in the InternalSecret are set.
func ValidateKubeAPIServer ¶
func ValidateKubeAPIServer(kubeAPIServer *core.KubeAPIServerConfig, kubernetesVersion string, opts KubeAPIServerValidationOptions, workerless bool, defaultEncryptedResources []schema.GroupResource, fldPath *field.Path) field.ErrorList
ValidateKubeAPIServer validates KubeAPIServerConfig.
func ValidateKubeControllerManager ¶
func ValidateKubeControllerManager(kcm *core.KubeControllerManagerConfig, networking *core.Networking, kubernetesVersion string, workerless bool, fldPath *field.Path) field.ErrorList
ValidateKubeControllerManager validates KubeControllerManagerConfig.
func ValidateKubeletConfig ¶
func ValidateKubeletConfig(kubeletConfig core.KubeletConfig, kubernetesVersion string, fldPath *field.Path) field.ErrorList
ValidateKubeletConfig validates the KubeletConfig object.
func ValidateKubernetesVersionUpdate ¶
func ValidateKubernetesVersionUpdate(new, old string, skipMinorVersionAllowed bool, fldPath *field.Path) field.ErrorList
ValidateKubernetesVersionUpdate ensures that new version is newer than old version and does not skip minor versions when not allowed
func ValidateLocalCredentialsRef ¶
func ValidateLocalCredentialsRef(ref autoscalingv1.CrossVersionObjectReference, fldPath *field.Path) field.ErrorList
ValidateLocalCredentialsRef ensures that a resource of GVK v1.Secret or security.gardener.cloud/v1alpha1.WorkloadIdentity is referred, and its name is properly set.
func ValidateMachineControllerManagerSettingsOptions ¶
func ValidateMachineControllerManagerSettingsOptions(mcmOptions *core.MachineControllerManagerSettings, machineUpdateStrategy *core.MachineUpdateStrategy, fldPath *field.Path) field.ErrorList
ValidateMachineControllerManagerSettingsOptions validates the machine controller manager setting options of worker pools
func ValidateMachineImage ¶
func ValidateMachineImage(image core.MachineImage, capabilities core.Capabilities, duplicateName sets.Set[string], duplicateNameVersion sets.Set[string], allowEmptyVersions bool, idxPath *field.Path) field.ErrorList
ValidateMachineImage validates a single machine image for valid values and combinations.
func ValidateMachineImageAdditionalConfig ¶
func ValidateMachineImageAdditionalConfig(machineVersion core.MachineImageVersion, versionsPath *field.Path, image core.MachineImage, capabilities core.Capabilities) field.ErrorList
ValidateMachineImageAdditionalConfig validates RuntimeInterfaces and supported versions configuration of a MachineImageVersion.
func ValidateMachineImageVersion ¶
func ValidateMachineImageVersion(image core.MachineImage, machineVersion core.MachineImageVersion, capabilities core.Capabilities, duplicateNameVersion sets.Set[string], versionsPath *field.Path) field.ErrorList
ValidateMachineImageVersion validates a single machine image version for valid values and combinations.
func ValidateMachineImages ¶
func ValidateMachineImages(machineImages []core.MachineImage, capabilities core.Capabilities, fldPath *field.Path, allowEmptyVersions bool) field.ErrorList
ValidateMachineImages validates the given list of machine images for valid values and combinations.
func ValidateMachineType ¶
func ValidateMachineType(machineType core.MachineType, names sets.Set[string], capabilities core.Capabilities, idxPath *field.Path) field.ErrorList
ValidateMachineType validates a single machine type for valid values and combinations.
func ValidateName ¶
ValidateName is a helper function for validating that a name is a DNS subdomain.
func ValidateNamespacedCloudProfile ¶
func ValidateNamespacedCloudProfile(namespacedCloudProfile *core.NamespacedCloudProfile) field.ErrorList
ValidateNamespacedCloudProfile validates a NamespacedCloudProfile object.
func ValidateNamespacedCloudProfileSpecUpdate ¶
func ValidateNamespacedCloudProfileSpecUpdate(newProfile, oldProfile *core.NamespacedCloudProfileSpec, fldPath *field.Path) field.ErrorList
ValidateNamespacedCloudProfileSpecUpdate validates the spec update of a NamespacedCloudProfile.
func ValidateNamespacedCloudProfileStatus ¶
func ValidateNamespacedCloudProfileStatus(spec *core.CloudProfileSpec, fldPath *field.Path) field.ErrorList
ValidateNamespacedCloudProfileStatus validates the specification of a NamespacedCloudProfile object.
func ValidateNamespacedCloudProfileUpdate ¶
func ValidateNamespacedCloudProfileUpdate(newProfile, oldProfile *core.NamespacedCloudProfile) field.ErrorList
ValidateNamespacedCloudProfileUpdate validates a NamespacedCloudProfile object before an update.
func ValidateNodeCIDRMaskWithMaxPod ¶
func ValidateNodeCIDRMaskWithMaxPod(maxPod int32, nodeCIDRMaskSize int32, networking core.Networking) 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 ValidateOCIRepository ¶
ValidateOCIRepository validates the OCI repository config.
func ValidateOIDCIssuerURL ¶
ValidateOIDCIssuerURL validates if the given issuerURL follow the expected format.
func ValidateObjectReferenceNameAndNamespace ¶
func ValidateObjectReferenceNameAndNamespace(ref corev1.ObjectReference, fldPath *field.Path, requireNamespace bool) field.ErrorList
ValidateObjectReferenceNameAndNamespace ensures the name in the ObjectReference is set. Optionally, it can ensure the namespace is also set when requireNamespace=true.
func ValidatePositiveDuration ¶
ValidatePositiveDuration validates that a duration is positive.
func ValidatePositiveIntOrPercent ¶
func ValidatePositiveIntOrPercent(intOrPercent *intstr.IntOrString, fldPath *field.Path) field.ErrorList
ValidatePositiveIntOrPercent validates a int or string object and ensures it is positive.
func ValidateProject ¶
ValidateProject validates a Project object.
func ValidateProjectDescription ¶
func ValidateProjectDescription(description string, allowInvalidDescription bool, fldPath *field.Path) field.ErrorList
ValidateProjectDescription validates the description of a Project object.
func ValidateProjectMember ¶
ValidateProjectMember validates the specification of a Project member.
func ValidateProjectPurpose ¶
func ValidateProjectPurpose(description string, allowInvalidPurpose bool, fldPath *field.Path) field.ErrorList
ValidateProjectPurpose validates the purpose of a Project object.
func ValidateProjectSpec ¶
func ValidateProjectSpec(projectSpec *core.ProjectSpec, opts projectValidationOptions, fldPath *field.Path) field.ErrorList
ValidateProjectSpec validates the specification of a Project object.
func ValidateProjectStatusUpdate ¶
ValidateProjectStatusUpdate validates the status field of a Project object.
func ValidateProjectUpdate ¶
ValidateProjectUpdate validates a Project object before an update.
func ValidateProjectWithOpts ¶
ValidateProjectWithOpts validates a Project object with the given options.
func ValidateProviderUpdate ¶
func ValidateProviderUpdate(newProvider, oldProvider *core.Provider, fldPath *field.Path) field.ErrorList
ValidateProviderUpdate validates the specification of a Provider object.
func ValidateQuota ¶
ValidateQuota validates a Quota object.
func ValidateQuotaSpec ¶
ValidateQuotaSpec validates the specification of a Quota object.
func ValidateQuotaUpdate ¶
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 ValidateResources ¶
func ValidateResources(resources []core.NamedResourceReference, fldPath *field.Path, allowWorkloadIdentity bool) field.ErrorList
ValidateResources validates the given list of NamedResourceReference for valid values and combinations.
func ValidateSecretBinding ¶
func ValidateSecretBinding(binding *core.SecretBinding) field.ErrorList
ValidateSecretBinding validates a SecretBinding object.
func ValidateSecretBindingProvider ¶
func ValidateSecretBindingProvider(provider *core.SecretBindingProvider) field.ErrorList
ValidateSecretBindingProvider validates a SecretBindingProvider object.
func ValidateSecretBindingUpdate ¶
func ValidateSecretBindingUpdate(newBinding, oldBinding *core.SecretBinding) field.ErrorList
ValidateSecretBindingUpdate validates a SecretBinding object before an update.
func ValidateSeed ¶
ValidateSeed validates a Seed object.
func ValidateSeedSpec ¶
func ValidateSeedSpec(seedSpec *core.SeedSpec, fldPath *field.Path, inTemplate bool) field.ErrorList
ValidateSeedSpec validates the specification of a Seed object.
func ValidateSeedSpecUpdate ¶
func ValidateSeedSpecUpdate(newSeedSpec, oldSeedSpec *core.SeedSpec, fldPath *field.Path) field.ErrorList
ValidateSeedSpecUpdate validates the specification updates of a Seed object.
func ValidateSeedStatusUpdate ¶
ValidateSeedStatusUpdate validates the status field of a Seed object.
func ValidateSeedTemplate ¶
ValidateSeedTemplate validates a SeedTemplate.
func ValidateSeedTemplateUpdate ¶
func ValidateSeedTemplateUpdate(newSeedTemplate, oldSeedTemplate *core.SeedTemplate, fldPath *field.Path) field.ErrorList
ValidateSeedTemplateUpdate validates a SeedTemplate before an update.
func ValidateSeedUpdate ¶
ValidateSeedUpdate validates a Seed object before an update.
func ValidateShoot ¶
ValidateShoot validates a Shoot object.
func ValidateShootHAConfig ¶
ValidateShootHAConfig enforces that both annotation and HA spec are not set together.
func ValidateShootHAConfigUpdate ¶
ValidateShootHAConfigUpdate validates the HA shoot control plane configuration.
func ValidateShootObjectMetaUpdate ¶
ValidateShootObjectMetaUpdate validates the object metadata of a Shoot object.
func ValidateShootSpec ¶
func ValidateShootSpec(meta metav1.ObjectMeta, spec *core.ShootSpec, opts shootValidationOptions, fldPath *field.Path, inTemplate bool) field.ErrorList
ValidateShootSpec validates the specification of a Shoot object.
func ValidateShootSpecUpdate ¶
func ValidateShootSpecUpdate(newSpec, oldSpec *core.ShootSpec, newObjectMeta metav1.ObjectMeta, fldPath *field.Path) field.ErrorList
ValidateShootSpecUpdate validates the specification of a Shoot object.
func ValidateShootState ¶
func ValidateShootState(shootState *core.ShootState) field.ErrorList
ValidateShootState validates a ShootState object
func ValidateShootStateSpec ¶
func ValidateShootStateSpec(shootStateSpec *core.ShootStateSpec, fldPath *field.Path) field.ErrorList
ValidateShootStateSpec validates the spec field of a ShootState object.
func ValidateShootStateSpecUpdate ¶
func ValidateShootStateSpecUpdate(_, _ *core.ShootStateSpec) field.ErrorList
ValidateShootStateSpecUpdate validates the update to the specification of a ShootState
func ValidateShootStateUpdate ¶
func ValidateShootStateUpdate(newShootState, oldShootState *core.ShootState) field.ErrorList
ValidateShootStateUpdate validates an update to a ShootState object
func ValidateShootStatusUpdate ¶
func ValidateShootStatusUpdate(newStatus, oldStatus core.ShootStatus) field.ErrorList
ValidateShootStatusUpdate validates the status field of a Shoot object.
func ValidateShootTemplate ¶
func ValidateShootTemplate(shootTemplate *core.ShootTemplate, opts KubeAPIServerValidationOptions, fldPath *field.Path) field.ErrorList
ValidateShootTemplate validates a ShootTemplate.
func ValidateShootTemplateUpdate ¶
func ValidateShootTemplateUpdate(newShootTemplate, oldShootTemplate *core.ShootTemplate, fldPath *field.Path) field.ErrorList
ValidateShootTemplateUpdate validates a ShootTemplate before an update.
func ValidateShootUpdate ¶
ValidateShootUpdate validates a Shoot object before an update.
func ValidateShootWithOpts ¶
ValidateShootWithOpts validates a Shoot object with the given options.
func ValidateSubject ¶
ValidateSubject validates the subject representing the owner.
func ValidateSysctls ¶
ValidateSysctls validates sysctls for valid keys and non-empty values
func ValidateSystemComponentWorkers ¶
ValidateSystemComponentWorkers validates workers specified to run system components.
func ValidateSystemComponents ¶
func ValidateSystemComponents(systemComponents *core.SystemComponents, fldPath *field.Path, workerless bool) field.ErrorList
ValidateSystemComponents validates the given system components.
func ValidateTolerations ¶
ValidateTolerations validates the given tolerations.
func ValidateTolerationsAgainstAllowlist ¶
func ValidateTolerationsAgainstAllowlist(tolerations, allowlist []core.Toleration, fldPath *field.Path) field.ErrorList
ValidateTolerationsAgainstAllowlist validates the given tolerations against the given allowlist.
func ValidateVerticalPodAutoscaler ¶
func ValidateVerticalPodAutoscaler(autoScaler core.VerticalPodAutoscaler, fldPath *field.Path) field.ErrorList
ValidateVerticalPodAutoscaler validates the given VerticalPodAutoscaler fields.
func ValidateVerticalPodAutoscalerMaxAllowed ¶
func ValidateVerticalPodAutoscalerMaxAllowed(maxAllowed corev1.ResourceList, fldPath *field.Path) field.ErrorList
ValidateVerticalPodAutoscalerMaxAllowed validates the given VerticalPodAutoscaler's MaxAllowed field.
func ValidateWatchCacheSizes ¶
func ValidateWatchCacheSizes(sizes *core.WatchCacheSizes, kubernetesVersion string, fldPath *field.Path) field.ErrorList
ValidateWatchCacheSizes validates the given WatchCacheSizes fields.
func ValidateWorker ¶
func ValidateWorker(worker core.Worker, kubernetes core.Kubernetes, shootNamespace, shootProviderType string, fldPath *field.Path, inTemplate bool) field.ErrorList
ValidateWorker validates the worker object.
func ValidateWorkerControlPlane ¶
func ValidateWorkerControlPlane(controlPlane *core.WorkerControlPlane, shootNamespace, shootProviderType string, fldPath *field.Path) field.ErrorList
ValidateWorkerControlPlane validates worker control plane
Types ¶
type KubeAPIServerValidationOptions ¶
type KubeAPIServerValidationOptions struct {
// AllowInvalidAcceptedIssuers specifies whether invalid accepted issuers are allowed.
AllowInvalidAcceptedIssuers bool
// AllowInvalidEventTTL specifies whether invalid event ttl is allowed.
//
// TODO(ialidzhikov): Stop accepting invalid event ttl values for existing Shoots in Gardener v1.142.0.
AllowInvalidEventTTL bool
}
KubeAPIServerValidationOptions are validation options for the KubeAPIServer fields.