Skip to content

Commit b299aba

Browse files
committed
Cleanup
1 parent 1fc01c8 commit b299aba

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

components/ws-manager-mk2/controllers/suite_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ func TestAPIs(t *testing.T) {
4949
}
5050

5151
var (
52-
ctx context.Context
53-
cancel context.CancelFunc
54-
//wsActivity *activity.WorkspaceActivity
52+
ctx context.Context
53+
cancel context.CancelFunc
5554
wsMetrics *controllerMetrics
5655
)
5756

@@ -110,7 +109,6 @@ var _ = BeforeSuite(func() {
110109
Expect(err).ToNot(HaveOccurred())
111110
Expect(wsReconciler.SetupWithManager(k8sManager)).To(Succeed())
112111

113-
//wsActivity = activity.NewWorkspaceActivity(conf.Namespace, k8sManager.GetClient())
114112
timeoutReconciler, err := NewTimeoutReconciler(k8sManager.GetClient(), k8sManager.GetEventRecorderFor("workspace"), conf, maintenance)
115113
Expect(err).ToNot(HaveOccurred())
116114
Expect(timeoutReconciler.SetupWithManager(k8sManager)).To(Succeed())

components/ws-manager-mk2/service/manager.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,6 @@ func (wsm *WorkspaceManagerServer) MarkActive(ctx context.Context, req *wsmanapi
519519
log.WithError(err).WithFields(log.OWI("", "", workspaceID)).Warn("was unable to update status")
520520
}
521521

522-
err = retry.RetryOnConflict(retryParams, func() error {
523-
return wsm.Client.Status().Update(ctx, &ws)
524-
})
525-
if err != nil {
526-
log.Error(err, "cannot update workspace status")
527-
}
528-
529522
// We do however maintain the the "closed" flag as condition on the workspace. This flag should not change
530523
// very often and provides a better UX if it persists across ws-manager restarts.
531524
isMarkedClosed := ws.IsConditionTrue(workspacev1.WorkspaceConditionClosed)

0 commit comments

Comments
 (0)