Documentation ¶
Index ¶
- func CalculateEffectiveKubernetesVersion(controlPlaneVersion *semver.Version, workerKubernetes *core.WorkerKubernetes) (*semver.Version, error)
- func CalculateSeedUsage(shootList []*core.Shoot) map[string]int
- func ConvertSeed(obj runtime.Object) (*core.Seed, error)
- func ConvertSeedExternal(obj runtime.Object) (*gardencorev1beta1.Seed, error)
- func DetermineLatestExpirableVersion(versions []core.ExpirableVersion, filterPreviewVersions bool) (core.ExpirableVersion, core.ExpirableVersion, error)
- func DetermineLatestMachineImageVersion(versions []core.MachineImageVersion, filterPreviewVersions bool) (core.MachineImageVersion, error)
- func DetermineLatestMachineImageVersions(images []core.MachineImage) (map[string]core.MachineImageVersion, error)
- func DeterminePrimaryIPFamily(ipFamilies []core.IPFamily) core.IPFamily
- func FilterVersionsWithClassification(versions []core.ExpirableVersion, classification core.VersionClassification) []core.ExpirableVersion
- func FindMachineImageVersion(machineImages []core.MachineImage, name, version string) (core.MachineImageVersion, bool)
- func FindPrimaryDNSProvider(providers []core.DNSProvider) *core.DNSProvider
- func FindVersionsWithSameMajorMinor(versions []core.ExpirableVersion, version semver.Version) ([]core.ExpirableVersion, error)
- func FindWorkerByName(workers []core.Worker, name string) *core.Worker
- func GetAddedVersions(old, new []core.ExpirableVersion) map[string]int
- func GetAllZonesFromShoot(shoot *core.Shoot) sets.Set[string]
- func GetCondition(conditions []core.Condition, conditionType core.ConditionType) *core.Condition
- func GetConditionIndex(conditions []core.Condition, conditionType core.ConditionType) int
- func GetRemovedVersions(old, new []core.ExpirableVersion) map[string]int
- func GetResourceByName(resources []core.NamedResourceReference, name string) *core.NamedResourceReference
- func GetSecretBindingTypes(secretBinding *core.SecretBinding) []string
- func GetShootAuditPolicyConfigMapName(apiServerConfig *core.KubeAPIServerConfig) string
- func GetShootAuditPolicyConfigMapRef(apiServerConfig *core.KubeAPIServerConfig) *corev1.ObjectReference
- func GetShootAuthenticationConfigurationConfigMapName(apiServerConfig *core.KubeAPIServerConfig) string
- func GetShootCARotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
- func GetShootETCDEncryptionKeyRotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
- func GetShootServiceAccountConfigAcceptedIssuers(apiServerConfig *core.KubeAPIServerConfig) []string
- func GetShootServiceAccountConfigIssuer(apiServerConfig *core.KubeAPIServerConfig) *string
- func GetShootServiceAccountKeyRotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
- func HasManagedIssuer(shoot *core.Shoot) bool
- func HibernationIsEnabled(shoot *core.Shoot) bool
- func IsHAControlPlaneConfigured(shoot *core.Shoot) bool
- func IsMultiZonalShootControlPlane(shoot *core.Shoot) bool
- func IsShootInHibernation(shoot *core.Shoot) bool
- func IsWorkerless(shoot *core.Shoot) bool
- func KubernetesDashboardEnabled(addons *core.Addons) bool
- func NginxIngressEnabled(addons *core.Addons) bool
- func QuotaScope(scopeRef corev1.ObjectReference) (string, error)
- func SeedSettingSchedulingVisible(settings *core.SeedSettings) bool
- func SeedSettingTopologyAwareRoutingEnabled(settings *core.SeedSettings) bool
- func ShootEnablesSSHAccess(shoot *core.Shoot) bool
- func ShootNeedsForceDeletion(shoot *core.Shoot) bool
- func ShootUsesUnmanagedDNS(shoot *core.Shoot) bool
- func ShootWantsVerticalPodAutoscaler(shoot *core.Shoot) bool
- func SystemComponentsAllowed(worker *core.Worker) bool
- func TaintsAreTolerated(taints []core.SeedTaint, tolerations []core.Toleration) bool
- func TaintsHave(taints []core.SeedTaint, key string) bool
- func ToExpirableVersions(versions []core.MachineImageVersion) []core.ExpirableVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateEffectiveKubernetesVersion ¶ added in v1.63.0
func CalculateEffectiveKubernetesVersion(controlPlaneVersion *semver.Version, workerKubernetes *core.WorkerKubernetes) (*semver.Version, error)
CalculateEffectiveKubernetesVersion if a shoot has kubernetes version specified by worker group, return this, otherwise the shoot kubernetes version
func CalculateSeedUsage ¶ added in v1.32.0
CalculateSeedUsage returns a map representing the number of shoots per seed from the given list of shoots. It takes both spec.seedName and status.seedName into account.
func ConvertSeed ¶ added in v1.17.0
ConvertSeed converts the given external Seed version to an internal version.
func ConvertSeedExternal ¶ added in v1.17.0
func ConvertSeedExternal(obj runtime.Object) (*gardencorev1beta1.Seed, error)
ConvertSeedExternal converts the given internal Seed version to an external version.
func DetermineLatestExpirableVersion ¶ added in v1.0.0
func DetermineLatestExpirableVersion(versions []core.ExpirableVersion, filterPreviewVersions bool) (core.ExpirableVersion, core.ExpirableVersion, error)
DetermineLatestExpirableVersion determines the latest expirable version and the latest non-deprecated version from a slice of ExpirableVersions. When filterPreviewVersions is set, versions with classification preview are not considered.
func DetermineLatestMachineImageVersion ¶ added in v1.0.0
func DetermineLatestMachineImageVersion(versions []core.MachineImageVersion, filterPreviewVersions bool) (core.MachineImageVersion, error)
DetermineLatestMachineImageVersion determines the latest MachineImageVersion from a slice of MachineImageVersion. When filterPreviewVersions is set, versions with classification preview are not considered. It will prefer older but non-deprecated versions over newer but deprecated versions.
func DetermineLatestMachineImageVersions ¶ added in v1.0.0
func DetermineLatestMachineImageVersions(images []core.MachineImage) (map[string]core.MachineImageVersion, error)
DetermineLatestMachineImageVersions determines the latest versions (semVer) of the given machine images from a slice of machine images
func DeterminePrimaryIPFamily ¶ added in v1.63.0
DeterminePrimaryIPFamily determines the primary IP family out of a specified list of IP families.
func FilterVersionsWithClassification ¶ added in v1.3.0
func FilterVersionsWithClassification(versions []core.ExpirableVersion, classification core.VersionClassification) []core.ExpirableVersion
FilterVersionsWithClassification filters versions for a classification
func FindMachineImageVersion ¶ added in v1.70.0
func FindMachineImageVersion(machineImages []core.MachineImage, name, version string) (core.MachineImageVersion, bool)
FindMachineImageVersion finds the machine image version in the <cloudProfile> for the given <name> and <version>. In case no machine image version can be found with the given <name> or <version>, false is being returned.
func FindPrimaryDNSProvider ¶ added in v1.1.0
func FindPrimaryDNSProvider(providers []core.DNSProvider) *core.DNSProvider
FindPrimaryDNSProvider finds the primary provider among the given `providers`. It returns the first provider if multiple candidates are found.
func FindVersionsWithSameMajorMinor ¶ added in v1.3.0
func FindVersionsWithSameMajorMinor(versions []core.ExpirableVersion, version semver.Version) ([]core.ExpirableVersion, error)
FindVersionsWithSameMajorMinor filters the given versions slice for versions other the given one, having the same major and minor version as the given version
func FindWorkerByName ¶ added in v1.0.0
FindWorkerByName tries to find the worker with the given name. If it cannot be found it returns nil.
func GetAddedVersions ¶ added in v1.3.0
func GetAddedVersions(old, new []core.ExpirableVersion) map[string]int
GetAddedVersions finds versions that have been added in the new compared to the new version slice. returns a map associating the version with its index in the old version slice.
func GetAllZonesFromShoot ¶ added in v1.59.0
GetAllZonesFromShoot returns the set of all availability zones defined in the worker pools of the Shoot specification.
func GetCondition ¶
GetCondition returns the condition with the given <conditionType> out of the list of <conditions>. In case the required type could not be found, it returns nil.
func GetConditionIndex ¶
func GetConditionIndex(conditions []core.Condition, conditionType core.ConditionType) int
GetConditionIndex returns the index of the condition with the given <conditionType> out of the list of <conditions>. In case the required type could not be found, it returns -1.
func GetRemovedVersions ¶ added in v1.3.0
func GetRemovedVersions(old, new []core.ExpirableVersion) map[string]int
GetRemovedVersions finds versions that have been removed in the old compared to the new version slice. returns a map associating the version with its index in the old version slice.
func GetResourceByName ¶ added in v1.84.0
func GetResourceByName(resources []core.NamedResourceReference, name string) *core.NamedResourceReference
GetResourceByName returns the NamedResourceReference with the given name in the given slice, or nil if not found.
func GetSecretBindingTypes ¶ added in v1.38.0
func GetSecretBindingTypes(secretBinding *core.SecretBinding) []string
GetSecretBindingTypes returns the SecretBinding provider types.
func GetShootAuditPolicyConfigMapName ¶ added in v1.37.7
func GetShootAuditPolicyConfigMapName(apiServerConfig *core.KubeAPIServerConfig) string
GetShootAuditPolicyConfigMapName returns the Shoot's ConfigMap reference name for the audit policy.
func GetShootAuditPolicyConfigMapRef ¶ added in v1.37.7
func GetShootAuditPolicyConfigMapRef(apiServerConfig *core.KubeAPIServerConfig) *corev1.ObjectReference
GetShootAuditPolicyConfigMapRef returns the Shoot's ConfigMap reference for the audit policy.
func GetShootAuthenticationConfigurationConfigMapName ¶ added in v1.102.0
func GetShootAuthenticationConfigurationConfigMapName(apiServerConfig *core.KubeAPIServerConfig) string
GetShootAuthenticationConfigurationConfigMapName returns the Shoot's ConfigMap reference name for the aithentication configuration.
func GetShootCARotationPhase ¶ added in v1.42.0
func GetShootCARotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
GetShootCARotationPhase returns the specified shoot CA rotation phase or an empty string
func GetShootETCDEncryptionKeyRotationPhase ¶ added in v1.48.0
func GetShootETCDEncryptionKeyRotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
GetShootETCDEncryptionKeyRotationPhase returns the specified shoot ETCD encryption key rotation phase or an empty string.
func GetShootServiceAccountConfigAcceptedIssuers ¶ added in v1.106.0
func GetShootServiceAccountConfigAcceptedIssuers(apiServerConfig *core.KubeAPIServerConfig) []string
GetShootServiceAccountConfigAcceptedIssuers returns the Shoot's ServiceAccountConfig AcceptedIssuers.
func GetShootServiceAccountConfigIssuer ¶ added in v1.106.0
func GetShootServiceAccountConfigIssuer(apiServerConfig *core.KubeAPIServerConfig) *string
GetShootServiceAccountConfigIssuer returns the Shoot's ServiceAccountConfig Issuer.
func GetShootServiceAccountKeyRotationPhase ¶ added in v1.48.0
func GetShootServiceAccountKeyRotationPhase(credentials *core.ShootCredentials) core.CredentialsRotationPhase
GetShootServiceAccountKeyRotationPhase returns the specified shoot service account key rotation phase or an empty string.
func HasManagedIssuer ¶ added in v1.91.0
HasManagedIssuer checks if the shoot has managed issuer enabled.
func HibernationIsEnabled ¶ added in v1.4.0
HibernationIsEnabled checks if the given shoot's desired state is hibernated.
func IsHAControlPlaneConfigured ¶ added in v1.58.0
IsHAControlPlaneConfigured returns true if HA configuration for the shoot control plane has been set.
func IsMultiZonalShootControlPlane ¶ added in v1.56.0
IsMultiZonalShootControlPlane checks if the shoot should have a multi-zonal control plane.
func IsShootInHibernation ¶ added in v1.75.0
IsShootInHibernation checks if the given shoot is in hibernation or is waking up.
func IsWorkerless ¶ added in v1.70.0
IsWorkerless checks if the shoot has zero workers.
func KubernetesDashboardEnabled ¶ added in v1.15.0
KubernetesDashboardEnabled returns true if the kubernetes-dashboard addon is enabled in the Shoot manifest.
func NginxIngressEnabled ¶ added in v1.15.0
NginxIngressEnabled returns true if the nginx-ingress addon is enabled in the Shoot manifest.
func QuotaScope ¶ added in v1.0.0
func QuotaScope(scopeRef corev1.ObjectReference) (string, error)
QuotaScope returns the scope of a quota scope reference.
func SeedSettingSchedulingVisible ¶ added in v1.5.0
func SeedSettingSchedulingVisible(settings *core.SeedSettings) bool
SeedSettingSchedulingVisible returns true if the 'scheduling' setting is set to 'visible'.
func SeedSettingTopologyAwareRoutingEnabled ¶ added in v1.66.0
func SeedSettingTopologyAwareRoutingEnabled(settings *core.SeedSettings) bool
SeedSettingTopologyAwareRoutingEnabled returns true if the topology-aware routing is enabled.
func ShootEnablesSSHAccess ¶ added in v1.74.0
ShootEnablesSSHAccess returns true if ssh access to worker nodes should be allowed for the given shoot.
func ShootNeedsForceDeletion ¶ added in v1.81.0
ShootNeedsForceDeletion determines whether a Shoot should be force deleted or not.
func ShootUsesUnmanagedDNS ¶ added in v1.0.0
ShootUsesUnmanagedDNS returns true if the shoot's DNS section is marked as 'unmanaged'.
func ShootWantsVerticalPodAutoscaler ¶ added in v1.18.0
ShootWantsVerticalPodAutoscaler checks if the given Shoot needs a VPA.
func SystemComponentsAllowed ¶ added in v1.7.0
SystemComponentsAllowed checks if the given worker allows system components to be scheduled onto it
func TaintsAreTolerated ¶ added in v1.6.0
func TaintsAreTolerated(taints []core.SeedTaint, tolerations []core.Toleration) bool
TaintsAreTolerated returns true when all the given taints are tolerated by the given tolerations.
func TaintsHave ¶ added in v1.0.0
TaintsHave returns true if the given key is part of the taints list.
func ToExpirableVersions ¶ added in v1.9.0
func ToExpirableVersions(versions []core.MachineImageVersion) []core.ExpirableVersion
ToExpirableVersions converts MachineImageVersion to ExpirableVersion
Types ¶
This section is empty.