Documentation ¶
Index ¶
- func NewDatadogMonitorCondition(conditionType datadoghqv1alpha1.DatadogMonitorConditionType, ...) datadoghqv1alpha1.DatadogMonitorCondition
- func SetDatadogMonitorCondition(condition *datadoghqv1alpha1.DatadogMonitorCondition, now metav1.Time, ...) *datadoghqv1alpha1.DatadogMonitorCondition
- func SetErrorActiveConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, err error)
- func UpdateDatadogMonitorConditions(status *datadoghqv1alpha1.DatadogMonitorStatus, now metav1.Time, ...)
- func UpdateFailureStatusConditions(conditions *[]metav1.Condition, now metav1.Time, conditionType Type, ...)
- func UpdateStatusConditions(conditions *[]metav1.Condition, now metav1.Time, t Type, ...)
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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
func UpdateFailureStatusConditions ¶ added in v1.3.0
func UpdateFailureStatusConditions(conditions *[]metav1.Condition, now metav1.Time, conditionType Type, reason string, err error)
UpdateFailureStatusConditions is a generic method to update the failure StatusConditions.
func UpdateStatusConditions ¶ added in v1.3.0
func UpdateStatusConditions(conditions *[]metav1.Condition, now metav1.Time, t Type, conditionStatus metav1.ConditionStatus, reason, msg string)
UpdateStatusConditions is a generic method to update a specific condition type in the status conditions.
Types ¶
type Type ¶ added in v1.3.0
type Type string
const ( // DatadogConditionTypeCreated means the Datadog CRD is created successfully DatadogConditionTypeCreated Type = "Created" // DatadogConditionTypeActive means the Datadog CRD is active DatadogConditionTypeActive Type = "Active" // DatadogConditionTypeUpdated means the Datadog CRD is updated DatadogConditionTypeUpdated Type = "Updated" // DatadogConditionTypeError means the Datadog CRD has error DatadogConditionTypeError Type = "Error" )
Click to show internal directories.
Click to hide internal directories.