Skip to content

Commit 1fd1173

Browse files
aledbfroboquat
authored andcommitted
[ws-manager] Disable PVC feature
1 parent 3783204 commit 1fd1173

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/ws-manager/pkg/manager/create.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828

2929
"github.com/gitpod-io/gitpod/common-go/kubernetes"
3030
wsk8s "github.com/gitpod-io/gitpod/common-go/kubernetes"
31+
"github.com/gitpod-io/gitpod/common-go/log"
3132
"github.com/gitpod-io/gitpod/common-go/tracing"
3233
"github.com/gitpod-io/gitpod/common-go/util"
3334
csapi "github.com/gitpod-io/gitpod/content-service/api"
@@ -552,6 +553,11 @@ func (m *Manager) createDefiniteWorkspacePod(startContext *startWorkspaceContext
552553
}
553554
ffidx[feature] = struct{}{}
554555

556+
if feature == api.WorkspaceFeatureFlag_PERSISTENT_VOLUME_CLAIM {
557+
log.WithField("request", startContext).Warn("Request with PVC enabled. Skipping feature.")
558+
continue
559+
}
560+
555561
switch feature {
556562
case api.WorkspaceFeatureFlag_FULL_WORKSPACE_BACKUP:
557563
removeVolume(&pod, workspaceVolumeName)

0 commit comments

Comments
 (0)