Documentation ¶
Index ¶
- Variables
- func ConditionsNeedUpdate(existingConditions, newConditions []gardencorev1alpha1.Condition) bool
- func GetCondition(conditions []gardencorev1alpha1.Condition, ...) *gardencorev1alpha1.Condition
- func InitCondition(conditionType gardencorev1alpha1.ConditionType) gardencorev1alpha1.Condition
- func IsControllerInstallationSuccessful(controllerInstallation gardencorev1alpha1.ControllerInstallation) bool
- func IsResourceSupported(resources []gardencorev1alpha1.ControllerResource, ...) bool
- func MergeConditions(oldConditions []gardencorev1alpha1.Condition, ...) []gardencorev1alpha1.Condition
- func UpdatedCondition(condition gardencorev1alpha1.Condition, status corev1.ConditionStatus, ...) gardencorev1alpha1.Condition
- func UpdatedConditionUnknownError(condition gardencorev1alpha1.Condition, err error) gardencorev1alpha1.Condition
- func UpdatedConditionUnknownErrorMessage(condition gardencorev1alpha1.Condition, message string) gardencorev1alpha1.Condition
Constants ¶
This section is empty.
Variables ¶
var Now = metav1.Now
Now determines the current metav1.Time.
Functions ¶
func ConditionsNeedUpdate ¶
func ConditionsNeedUpdate(existingConditions, newConditions []gardencorev1alpha1.Condition) bool
ConditionsNeedUpdate returns true if the <existingConditions> must be updated based on <newConditions>.
func GetCondition ¶
func GetCondition(conditions []gardencorev1alpha1.Condition, conditionType gardencorev1alpha1.ConditionType) *gardencorev1alpha1.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 gardencorev1alpha1.ConditionType) gardencorev1alpha1.Condition
InitCondition initializes a new Condition with an Unknown status.
func IsControllerInstallationSuccessful ¶
func IsControllerInstallationSuccessful(controllerInstallation gardencorev1alpha1.ControllerInstallation) bool
IsControllerInstallationSuccessful returns true if a ControllerInstallation has been marked as "successfully" installed.
func IsResourceSupported ¶
func IsResourceSupported(resources []gardencorev1alpha1.ControllerResource, resourceKind, resourceType string) bool
IsResourceSupported returns true if a given combination of kind/type is part of a controller resources list.
func MergeConditions ¶
func MergeConditions(oldConditions []gardencorev1alpha1.Condition, newConditions ...gardencorev1alpha1.Condition) []gardencorev1alpha1.Condition
MergeConditions merges the given <oldConditions> with the <newConditions>. Existing conditions are superseded by the <newConditions> (depending on the condition type).
func UpdatedCondition ¶
func UpdatedCondition(condition gardencorev1alpha1.Condition, status corev1.ConditionStatus, reason, message string) gardencorev1alpha1.Condition
UpdatedCondition updates the properties of one specific condition.
func UpdatedConditionUnknownError ¶
func UpdatedConditionUnknownError(condition gardencorev1alpha1.Condition, err error) gardencorev1alpha1.Condition
func UpdatedConditionUnknownErrorMessage ¶
func UpdatedConditionUnknownErrorMessage(condition gardencorev1alpha1.Condition, message string) gardencorev1alpha1.Condition
Types ¶
This section is empty.