helper

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineCloudProviderInProfile

func DetermineCloudProviderInProfile(spec garden.CloudProfileSpec) (garden.CloudProvider, error)

DetermineCloudProviderInProfile takes a CloudProfile specification and returns the cloud provider this profile is used for. If it is not able to determine it, an error will be returned.

func DetermineCloudProviderInShoot

func DetermineCloudProviderInShoot(cloudObj garden.Cloud) (garden.CloudProvider, error)

DetermineCloudProviderInShoot takes a Shoot cloud object and returns the cloud provider this profile is used for. If it is not able to determine it, an error will be returned.

func DetermineLatestCloudProfileMachineImageVersion

func DetermineLatestCloudProfileMachineImageVersion(image garden.CloudProfileMachineImage) (garden.ExpirableVersion, error)

DetermineLatestCloudProfileMachineImageVersion determines the latest MachineImageVersion from a MachineImage

func DetermineLatestCloudProfileMachineImageVersions

func DetermineLatestCloudProfileMachineImageVersions(images []garden.CloudProfileMachineImage) (map[string]garden.ExpirableVersion, error)

DetermineLatestCloudProfileMachineImageVersions determines the latest versions (semVer) of the given machine images from a slice of machine images

func DetermineLatestExpirableVersion

func DetermineLatestExpirableVersion(offeredVersions []garden.ExpirableVersion) (garden.ExpirableVersion, error)

DetermineLatestExpirableVersion determines the latest ExpirableVersion from a slice of ExpirableVersions

func DetermineLatestKubernetesVersion

func DetermineLatestKubernetesVersion(offeredVersions []garden.KubernetesVersion) (garden.KubernetesVersion, error)

DetermineLatestKubernetesVersion determines the latest KubernetesVersion from a slice of KubernetesVersions

func DetermineLatestMachineImageVersion

func DetermineLatestMachineImageVersion(image garden.MachineImage) (garden.MachineImageVersion, error)

DetermineLatestMachineImageVersion determines the latest MachineImageVersion from a MachineImage

func DetermineLatestMachineImageVersions

func DetermineLatestMachineImageVersions(images []garden.MachineImage) (map[string]garden.MachineImageVersion, error)

DetermineLatestMachineImageVersions determines the latest versions (semVer) of the given machine images from a slice of machine images

func FindWorkerByName added in v0.33.6

func FindWorkerByName(workers []garden.Worker, name string) *garden.Worker

FindWorkerByName tries to find the worker with the given name. If it cannot be found it returns nil.

func GetCondition

func GetCondition(conditions []garden.Condition, conditionType garden.ConditionType) *garden.Condition

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 []garden.Condition, conditionType garden.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 QuotaScope

func QuotaScope(scopeRef corev1.ObjectReference) (string, error)

QuotaScope returns the scope of a quota scope reference.

func ShootUsesUnmanagedDNS added in v0.33.0

func ShootUsesUnmanagedDNS(shoot *garden.Shoot) bool

ShootUsesUnmanagedDNS returns true if the shoot's DNS section is marked as 'unmanaged'.

func ShootWantsBasicAuthentication

func ShootWantsBasicAuthentication(kubeAPIServerConfig *garden.KubeAPIServerConfig) bool

ShootWantsBasicAuthentication returns true if basic authentication is not configured or if it is set explicitly to 'true'.

func TaintsHave

func TaintsHave(taints []garden.SeedTaint, key string) bool

TaintsHave returns true if the given key is part of the taints list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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