Documentation ¶
Index ¶
- func DetermineCloudProviderInProfile(spec garden.CloudProfileSpec) (garden.CloudProvider, error)
- func DetermineCloudProviderInShoot(cloudObj garden.Cloud) (garden.CloudProvider, error)
- func DetermineLatestCloudProfileMachineImageVersion(image garden.CloudProfileMachineImage) (garden.ExpirableVersion, error)
- func DetermineLatestCloudProfileMachineImageVersions(images []garden.CloudProfileMachineImage) (map[string]garden.ExpirableVersion, error)
- func DetermineLatestExpirableVersion(offeredVersions []garden.ExpirableVersion) (garden.ExpirableVersion, error)
- func DetermineLatestKubernetesVersion(offeredVersions []garden.KubernetesVersion) (garden.KubernetesVersion, error)
- func DetermineLatestMachineImageVersion(image garden.MachineImage) (garden.MachineImageVersion, error)
- func DetermineLatestMachineImageVersions(images []garden.MachineImage) (map[string]garden.MachineImageVersion, error)
- func FindWorkerByName(workers []garden.Worker, name string) *garden.Worker
- func GetCondition(conditions []garden.Condition, conditionType garden.ConditionType) *garden.Condition
- func GetConditionIndex(conditions []garden.Condition, conditionType garden.ConditionType) int
- func QuotaScope(scopeRef corev1.ObjectReference) (string, error)
- func ShootUsesUnmanagedDNS(shoot *garden.Shoot) bool
- func ShootWantsBasicAuthentication(kubeAPIServerConfig *garden.KubeAPIServerConfig) bool
- func TaintsHave(taints []garden.SeedTaint, key string) bool
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
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
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'.
Types ¶
This section is empty.