Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Sep 20, 2024
1 parent 39a6052 commit 62a8d91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions operator/internal/controller/auto/update_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 62a8d91

Please sign in to comment.