Skip to content

Commit

Permalink
Fix K8ssandraTask Status part to conform with CassandraTask one
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Oct 24, 2023
1 parent 7703749 commit 930dc74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/control/v1alpha1/k8ssandratask_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down
1 change: 1 addition & 0 deletions controllers/control/k8ssandratask_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down

0 comments on commit 930dc74

Please sign in to comment.