Documentation ¶
Overview ¶
Package conditions contains ExtendedDaemonSetReplicaSet Conditions helper functions.
Index ¶
- func BoolToCondition(value bool) corev1.ConditionStatus
- func GetExtendedDaemonSetReplicaSetStatusCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, ...) *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetCondition
- func IsConditionTrue(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, ...) bool
- func NewExtendedDaemonSetReplicaSetCondition(conditionType datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType, ...) datadoghqv1alpha1.ExtendedDaemonSetReplicaSetCondition
- func UpdateErrorCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, now metav1.Time, ...)
- func UpdateExtendedDaemonSetReplicaSetStatusCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, now metav1.Time, ...)
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 ¶
func GetExtendedDaemonSetReplicaSetStatusCondition(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, t datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType) *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetCondition
GetExtendedDaemonSetReplicaSetStatusCondition return the condition struct corresponding to the ExtendedDaemonSetReplicaSetConditionType provided in argument. return nil if not found.
func IsConditionTrue ¶ added in v0.5.0
func IsConditionTrue(status *datadoghqv1alpha1.ExtendedDaemonSetReplicaSetStatus, t datadoghqv1alpha1.ExtendedDaemonSetReplicaSetConditionType) bool
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.