Documentation ¶
Index ¶
- func ConditionsNeedUpdate(existingConditions, newConditions []gardenv1beta1.Condition) bool
- func DetermineCloudProviderInProfile(spec gardenv1beta1.CloudProfileSpec) (gardenv1beta1.CloudProvider, error)
- func DetermineCloudProviderInShoot(cloudObj gardenv1beta1.Cloud) (gardenv1beta1.CloudProvider, error)
- func DetermineLatestKubernetesVersion(cloudProfile gardenv1beta1.CloudProfile, currentVersion string) (bool, string, error)
- func DetermineMachineImage(cloudProfile gardenv1beta1.CloudProfile, name gardenv1beta1.MachineImageName, ...) (bool, interface{}, error)
- func GetCondition(conditions []gardenv1beta1.Condition, ...) *gardenv1beta1.Condition
- func InitCondition(conditionType gardenv1beta1.ConditionType, reason, message string) *gardenv1beta1.Condition
- func ModifyCondition(condition *gardenv1beta1.Condition, status corev1.ConditionStatus, ...) *gardenv1beta1.Condition
- func NewConditions(conditions []gardenv1beta1.Condition, ...) []*gardenv1beta1.Condition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionsNeedUpdate ¶
func ConditionsNeedUpdate(existingConditions, newConditions []gardenv1beta1.Condition) bool
ConditionsNeedUpdate returns true if the <existingConditions> must be updated based on <newConditions>.
func DetermineCloudProviderInProfile ¶
func DetermineCloudProviderInProfile(spec gardenv1beta1.CloudProfileSpec) (gardenv1beta1.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 gardenv1beta1.Cloud) (gardenv1beta1.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 DetermineLatestKubernetesVersion ¶
func DetermineLatestKubernetesVersion(cloudProfile gardenv1beta1.CloudProfile, currentVersion string) (bool, string, error)
DetermineLatestKubernetesVersion finds the latest Kubernetes patch version in the <cloudProfile> compared to the given <currentVersion>. In case it does not find a newer patch version, it returns false. Otherwise, true and the found version will be returned.
func DetermineMachineImage ¶
func DetermineMachineImage(cloudProfile gardenv1beta1.CloudProfile, name gardenv1beta1.MachineImageName, region string) (bool, interface{}, error)
DetermineMachineImage finds the cloud specific machine image in the <cloudProfile> for the given <name> and region. In case it does not find a machine image with the <name>, it returns false. Otherwise, true and the cloud-specific machine image object will be returned.
func GetCondition ¶
func GetCondition(conditions []gardenv1beta1.Condition, conditionType gardenv1beta1.ConditionType) *gardenv1beta1.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 InitCondition ¶
func InitCondition(conditionType gardenv1beta1.ConditionType, reason, message string) *gardenv1beta1.Condition
InitCondition initializes a new Condition with an Unknown status.
func ModifyCondition ¶
func ModifyCondition(condition *gardenv1beta1.Condition, status corev1.ConditionStatus, reason, message string) *gardenv1beta1.Condition
ModifyCondition updates the properties of one specific condition.
func NewConditions ¶
func NewConditions(conditions []gardenv1beta1.Condition, conditionTypes ...gardenv1beta1.ConditionType) []*gardenv1beta1.Condition
NewConditions initializes the provided conditions based on an existing list. If a condition type does not exist in the list yet, it will be set to default values.
Types ¶
This section is empty.