Documentation ¶
Index ¶
- 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, error)
- func DetermineLatestMachineImageVersion(versions []core.MachineImageVersion, filterPreviewVersions bool) (core.MachineImageVersion, error)
- func DetermineLatestMachineImageVersions(images []core.MachineImage) (map[string]core.MachineImageVersion, error)
- func FilterVersionsWithClassification(versions []core.ExpirableVersion, classification core.VersionClassification) []core.ExpirableVersion
- 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 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 HibernationIsEnabled(shoot *core.Shoot) bool
- func KubernetesDashboardEnabled(addons *core.Addons) bool
- func NginxIngressEnabled(addons *core.Addons) bool
- func QuotaScope(scopeRef corev1.ObjectReference) (string, error)
- func SeedSettingExcessCapacityReservationEnabled(settings *core.SeedSettings) bool
- func SeedSettingSchedulingVisible(settings *core.SeedSettings) bool
- func SeedSettingShootDNSEnabled(settings *core.SeedSettings) bool
- func ShootUsesUnmanagedDNS(shoot *core.Shoot) bool
- func ShootWantsBasicAuthentication(kubeAPIServerConfig *core.KubeAPIServerConfig) 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 ConvertSeed ¶
ConvertSeed converts the given external Seed version to an internal version.
func ConvertSeedExternal ¶
func ConvertSeedExternal(obj runtime.Object) (*gardencorev1beta1.Seed, error)
ConvertSeedExternal converts the given internal Seed version to an external version.
func DetermineLatestExpirableVersion ¶
func DetermineLatestExpirableVersion(versions []core.ExpirableVersion, filterPreviewVersions bool) (core.ExpirableVersion, error)
DetermineLatestExpirableVersion determines the latest ExpirableVersion from a slice of ExpirableVersions when filterPreviewVersions is set, versions with classification preview are not considered
func DetermineLatestMachineImageVersion ¶
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
func DetermineLatestMachineImageVersions ¶
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 FilterVersionsWithClassification ¶
func FilterVersionsWithClassification(versions []core.ExpirableVersion, classification core.VersionClassification) []core.ExpirableVersion
FilterVersionsWithClassification filters versions for a classification
func FindPrimaryDNSProvider ¶
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 ¶
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 ¶
FindWorkerByName tries to find the worker with the given name. If it cannot be found it returns nil.
func GetAddedVersions ¶
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 in the old version slice.
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 ¶
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 in the old version slice.
func HibernationIsEnabled ¶
HibernationIsEnabled checks if the given shoot's desired state is hibernated.
func KubernetesDashboardEnabled ¶
KubernetesDashboardEnabled returns true if the kubernetes-dashboard addon is enabled in the Shoot manifest.
func NginxIngressEnabled ¶
NginxIngressEnabled returns true if the nginx-ingress addon is enabled in the Shoot manifest.
func QuotaScope ¶
func QuotaScope(scopeRef corev1.ObjectReference) (string, error)
QuotaScope returns the scope of a quota scope reference.
func SeedSettingExcessCapacityReservationEnabled ¶
func SeedSettingExcessCapacityReservationEnabled(settings *core.SeedSettings) bool
SeedSettingExcessCapacityReservationEnabled returns true if the 'excess capacity reservation' setting is enabled.
func SeedSettingSchedulingVisible ¶
func SeedSettingSchedulingVisible(settings *core.SeedSettings) bool
SeedSettingSchedulingVisible returns true if the 'scheduling' setting is set to 'visible'.
func SeedSettingShootDNSEnabled ¶
func SeedSettingShootDNSEnabled(settings *core.SeedSettings) bool
SeedSettingShootDNSEnabled returns true if the 'shoot dns' setting is enabled.
func ShootUsesUnmanagedDNS ¶
ShootUsesUnmanagedDNS returns true if the shoot's DNS section is marked as 'unmanaged'.
func ShootWantsBasicAuthentication ¶
func ShootWantsBasicAuthentication(kubeAPIServerConfig *core.KubeAPIServerConfig) bool
ShootWantsBasicAuthentication returns true if basic authentication is not configured or if it is set explicitly to 'true'.
func ShootWantsVerticalPodAutoscaler ¶
ShootWantsVerticalPodAutoscaler checks if the given Shoot needs a VPA.
func SystemComponentsAllowed ¶
SystemComponentsAllowed checks if the given worker allows system components to be scheduled onto it
func TaintsAreTolerated ¶
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 ¶
TaintsHave returns true if the given key is part of the taints list.
func ToExpirableVersions ¶
func ToExpirableVersions(versions []core.MachineImageVersion) []core.ExpirableVersion
ToExpirableVersions converts MachineImageVersion to ExpirableVersion
Types ¶
This section is empty.