Skip to content

Commit 41dc0f2

Browse files
committed
[ws-manager-mk2] Fix stopped status
1 parent 663baaf commit 41dc0f2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func updateWorkspaceStatus(ctx context.Context, workspace *workspacev1.Workspace
4040
workspace.Status.Phase = workspacev1.WorkspacePhasePending
4141
}
4242

43-
if isDisposalFinished(workspace) {
43+
if workspace.Status.Phase == workspacev1.WorkspacePhaseStopping && isDisposalFinished(workspace) {
4444
workspace.Status.Phase = workspacev1.WorkspacePhaseStopped
4545
}
4646
return nil

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (wsm *WorkspaceManagerServer) StartWorkspace(ctx context.Context, req *wsma
249249
}
250250

251251
var wsr workspacev1.Workspace
252-
err = wait.PollWithContext(ctx, 200*time.Millisecond, 15*time.Second, func(c context.Context) (done bool, err error) {
252+
err = wait.PollWithContext(ctx, 200*time.Millisecond, 30*time.Second, func(c context.Context) (done bool, err error) {
253253
err = wsm.Client.Get(ctx, types.NamespacedName{Namespace: wsm.Config.Namespace, Name: ws.Name}, &wsr)
254254
if err != nil {
255255
return false, nil

install/installer/pkg/components/ws-manager-mk2/configmap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func configmap(ctx *common.RenderContext) ([]runtime.Object, error) {
224224
ReconnectionInterval: util.Duration(30 * time.Second),
225225
RegistryFacadeHost: fmt.Sprintf("reg.%s:%d", ctx.Config.Domain, common.RegistryFacadeServicePort),
226226
WorkspaceCACertSecret: customCASecret,
227-
WorkspaceMaxConcurrentReconciles: 15,
227+
WorkspaceMaxConcurrentReconciles: 25,
228228
TimeoutMaxConcurrentReconciles: 15,
229229
},
230230
Content: struct {

0 commit comments

Comments
 (0)