diff --git a/apis/control/v1alpha1/k8ssandratask_types.go b/apis/control/v1alpha1/k8ssandratask_types.go index 3a5cc2b04..ded8eff98 100644 --- a/apis/control/v1alpha1/k8ssandratask_types.go +++ b/apis/control/v1alpha1/k8ssandratask_types.go @@ -161,6 +161,7 @@ func (t *K8ssandraTask) SetCondition(condition cassapi.JobConditionType, status if !existing { cond := metav1.Condition{ Type: string(condition), + Reason: string(condition), Status: status, LastTransitionTime: metav1.Now(), } diff --git a/controllers/control/k8ssandratask_controller_test.go b/controllers/control/k8ssandratask_controller_test.go index 6c35e812d..d0b4f0d5c 100644 --- a/controllers/control/k8ssandratask_controller_test.go +++ b/controllers/control/k8ssandratask_controller_test.go @@ -445,6 +445,7 @@ func SetCondition(task *cassapi.CassandraTask, condition cassapi.JobConditionTyp if !existing { cond := metav1.Condition{ Type: string(condition), + Reason: string(condition), Status: status, LastTransitionTime: metav1.Now(), }