conditions

package
v0.7.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package conditions contains ExtendedDaemonSetReplicaSet Conditions helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToCondition added in v0.5.0

func BoolToCondition(value bool) corev1.ConditionStatus

BoolToCondition convert bool to corev1.ConditionStatus.

func GetExtendedDaemonSetReplicaSetStatusCondition

GetExtendedDaemonSetReplicaSetStatusCondition return the condition struct corresponding to the ExtendedDaemonSetReplicaSetConditionType provided in argument. return nil if not found.

func IsConditionTrue added in v0.5.0

IsConditionTrue check if a condition is True. It not set return False.

func NewExtendedDaemonSetReplicaSetCondition

func NewExtendedDaemonSetReplicaSetCondition(conditionType datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType, conditionStatus corev1.ConditionStatus, now metav1.Time, reason, message string, supportLastUpdate bool) datadoghqv1alpha1.ExtendedDaemonSetReplicaSetCondition

NewExtendedDaemonSetReplicaSetCondition returns new ExtendedDaemonSetReplicaSetCondition instance.

func UpdateErrorCondition

func UpdateErrorCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, now metav1.Time, err error, desc string)

UpdateErrorCondition used to update the ExtendedDaemonSetReplicaSet status error condition.

func UpdateExtendedDaemonSetReplicaSetStatusCondition

func UpdateExtendedDaemonSetReplicaSetStatusCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, now metav1.Time, t datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType, conditionStatus corev1.ConditionStatus, reason, desc string, writeFalseIfNotExist, supportLastUpdate bool)

UpdateExtendedDaemonSetReplicaSetStatusCondition used to update a specific ExtendedDaemonSetReplicaSetConditionType.

Types

This section is empty.

Jump to

Keyboard shortcuts

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