Documentation ¶
Index ¶
- func GetCoreV1ConditionStatus(status bool) corev1.ConditionStatus
- func NewDatadogAgentStatusCondition(conditionType datadoghqv1alpha1.DatadogAgentConditionType, ...) datadoghqv1alpha1.DatadogAgentCondition
- func NewDatadogMonitorCondition(conditionType datadoghqv1alpha1.DatadogMonitorConditionType, ...) datadoghqv1alpha1.DatadogMonitorCondition
- func SetDatadogAgentStatusCondition(status *datadoghqv1alpha1.DatadogAgentStatus, ...)
- func SetDatadogMonitorCondition(condition *datadoghqv1alpha1.DatadogMonitorCondition, now metav1.Time, ...) *datadoghqv1alpha1.DatadogMonitorCondition
- func SetErrorActiveConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, err error)
- func UpdateDatadogAgentStatusCondition(condition *datadoghqv1alpha1.DatadogAgentCondition, now metav1.Time, ...) *datadoghqv1alpha1.DatadogAgentCondition
- func UpdateDatadogAgentStatusConditions(status *datadoghqv1alpha1.DatadogAgentStatus, now metav1.Time, ...)
- func UpdateDatadogAgentStatusConditionsFailure(status *datadoghqv1alpha1.DatadogAgentStatus, now metav1.Time, ...)
- func UpdateDatadogMonitorConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCoreV1ConditionStatus ¶ added in v1.0.0
func GetCoreV1ConditionStatus(status bool) corev1.ConditionStatus
GetCoreV1ConditionStatus converts a boolean to corev1.ConditionStatus
func NewDatadogAgentStatusCondition ¶
func NewDatadogAgentStatusCondition(conditionType datadoghqv1alpha1.DatadogAgentConditionType, conditionStatus corev1.ConditionStatus, now metav1.Time, reason, message string) datadoghqv1alpha1.DatadogAgentCondition
NewDatadogAgentStatusCondition returns new DatadogAgentCondition instance
func NewDatadogMonitorCondition ¶ added in v0.6.0
func NewDatadogMonitorCondition(conditionType datadoghqv1alpha1.DatadogMonitorConditionType, conditionStatus corev1.ConditionStatus, now metav1.Time, reason, message string) datadoghqv1alpha1.DatadogMonitorCondition
NewDatadogMonitorCondition returns a new DatadogMonitorCondition
func SetDatadogAgentStatusCondition ¶
func SetDatadogAgentStatusCondition(status *datadoghqv1alpha1.DatadogAgentStatus, condition *datadoghqv1alpha1.DatadogAgentCondition)
SetDatadogAgentStatusCondition use to set a condition
func SetDatadogMonitorCondition ¶ added in v0.6.0
func SetDatadogMonitorCondition(condition *datadoghqv1alpha1.DatadogMonitorCondition, now metav1.Time, conditionStatus corev1.ConditionStatus, desc string) *datadoghqv1alpha1.DatadogMonitorCondition
SetDatadogMonitorCondition is used to set a specific DatadogMonitorConditionType
func SetErrorActiveConditions ¶ added in v0.6.0
func SetErrorActiveConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, err error)
SetErrorActiveConditions sets the Error and Active DatadogMonitorConditionTypes to True or False
func UpdateDatadogAgentStatusCondition ¶
func UpdateDatadogAgentStatusCondition(condition *datadoghqv1alpha1.DatadogAgentCondition, now metav1.Time, t datadoghqv1alpha1.DatadogAgentConditionType, conditionStatus corev1.ConditionStatus, desc string) *datadoghqv1alpha1.DatadogAgentCondition
UpdateDatadogAgentStatusCondition used to update a specific DatadogAgentConditionType
func UpdateDatadogAgentStatusConditions ¶
func UpdateDatadogAgentStatusConditions(status *datadoghqv1alpha1.DatadogAgentStatus, now metav1.Time, t datadoghqv1alpha1.DatadogAgentConditionType, conditionStatus corev1.ConditionStatus, desc string, writeFalseIfNotExist bool)
UpdateDatadogAgentStatusConditions used to update a specific DatadogAgentConditionType in conditions
func UpdateDatadogAgentStatusConditionsFailure ¶
func UpdateDatadogAgentStatusConditionsFailure(status *datadoghqv1alpha1.DatadogAgentStatus, now metav1.Time, conditionType datadoghqv1alpha1.DatadogAgentConditionType, err error)
UpdateDatadogAgentStatusConditionsFailure used to update the failure StatusConditions
func UpdateDatadogMonitorConditions ¶ added in v0.6.0
func UpdateDatadogMonitorConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, t datadoghqv1alpha1.DatadogMonitorConditionType, conditionStatus corev1.ConditionStatus, desc string)
UpdateDatadogMonitorConditions is used to update a DatadogMonitorConditionType in conditions
Types ¶
This section is empty.