Documentation ¶
Index ¶
- func GetThresholdForCondition(conditions []config.ConditionThreshold, ...) time.Duration
- func PatchSeedCondition(ctx context.Context, log logr.Logger, c client.StatusWriter, ...) error
- func SetToProgressingOrFalse(clock clock.Clock, conditionThreshold time.Duration, ...) gardencorev1beta1.Condition
- func SetToProgressingOrUnknown(clock clock.Clock, conditionThreshold time.Duration, ...) gardencorev1beta1.Condition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetThresholdForCondition ¶
func GetThresholdForCondition(conditions []config.ConditionThreshold, conditionType gardencorev1beta1.ConditionType) time.Duration
GetThresholdForCondition returns the threshold duration from the configuration for the provided condition type.
func PatchSeedCondition ¶
func PatchSeedCondition(ctx context.Context, log logr.Logger, c client.StatusWriter, seed *gardencorev1beta1.Seed, condition gardencorev1beta1.Condition) error
PatchSeedCondition patches the seed conditions in case they need to be updated.
func SetToProgressingOrFalse ¶
func SetToProgressingOrFalse( clock clock.Clock, conditionThreshold time.Duration, condition gardencorev1beta1.Condition, reason, message string, codes ...gardencorev1beta1.ErrorCode, ) gardencorev1beta1.Condition
SetToProgressingOrFalse sets the provided condition to Progressing or to False based on whether the provided conditionThreshold has passed compared to the condition's last transition time.
func SetToProgressingOrUnknown ¶
func SetToProgressingOrUnknown( clock clock.Clock, conditionThreshold time.Duration, condition gardencorev1beta1.Condition, reason, message string, codes ...gardencorev1beta1.ErrorCode, ) gardencorev1beta1.Condition
SetToProgressingOrUnknown sets the provided condition to Progressing or to Unknown based on whether the provided conditionThreshold has passed compared to the condition's last transition time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.