From 930dc74552ef9c1da98e5e762712045844c9c14a Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Tue, 24 Oct 2023 13:22:07 +0300 Subject: [PATCH] Fix K8ssandraTask Status part to conform with CassandraTask one --- apis/control/v1alpha1/k8ssandratask_types.go | 1 + controllers/control/k8ssandratask_controller_test.go | 1 + 2 files changed, 2 insertions(+) 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(), }