From 62a8d918d1c310f96427d8ca76600cc390f481e6 Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Fri, 20 Sep 2024 15:15:28 -0700 Subject: [PATCH] fix tests --- operator/internal/controller/auto/update_controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/operator/internal/controller/auto/update_controller.go b/operator/internal/controller/auto/update_controller.go index 35fb419e..a9cbcbfc 100644 --- a/operator/internal/controller/auto/update_controller.go +++ b/operator/internal/controller/auto/update_controller.go @@ -249,7 +249,7 @@ func (u *reconcileSession) Preview(ctx context.Context, obj *autov1alpha1.Update u.complete.Status = metav1.ConditionTrue u.complete.Reason = UpdateConditionReasonUpdated switch r.Result.Summary.Result { - case apitype.StatusSucceeded: + case string(apitype.StatusSucceeded): u.failed.Status = metav1.ConditionFalse u.failed.Reason = r.Result.Summary.Result default: @@ -335,7 +335,7 @@ func (u *reconcileSession) Update(ctx context.Context, obj *autov1alpha1.Update, u.complete.Status = metav1.ConditionTrue u.complete.Reason = UpdateConditionReasonUpdated switch result.Summary.Result { - case apitype.StatusSucceeded: + case string(apitype.StatusSucceeded): u.failed.Status = metav1.ConditionFalse u.failed.Reason = result.Summary.Result default: @@ -394,7 +394,7 @@ func (u *reconcileSession) Refresh(ctx context.Context, obj *autov1alpha1.Update u.complete.Status = metav1.ConditionTrue u.complete.Reason = UpdateConditionReasonUpdated switch r.Result.Summary.Result { - case apitype.StatusSucceeded: + case string(apitype.StatusSucceeded): u.failed.Status = metav1.ConditionFalse u.failed.Reason = r.Result.Summary.Result default: @@ -462,7 +462,7 @@ func (u *reconcileSession) Destroy(ctx context.Context, obj *autov1alpha1.Update u.complete.Status = metav1.ConditionTrue u.complete.Reason = UpdateConditionReasonUpdated switch r.Result.Summary.Result { - case apitype.StatusSucceeded: + case string(apitype.StatusSucceeded): u.failed.Status = metav1.ConditionFalse u.failed.Reason = r.Result.Summary.Result default: