From 1fd1173cf1d5f7cfe036b173b85fca5805d73cd1 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Wed, 3 Aug 2022 14:53:58 -0400 Subject: [PATCH] [ws-manager] Disable PVC feature --- components/ws-manager/pkg/manager/create.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/ws-manager/pkg/manager/create.go b/components/ws-manager/pkg/manager/create.go index b8d4a0b96bc61d..196eb7d4b4776c 100644 --- a/components/ws-manager/pkg/manager/create.go +++ b/components/ws-manager/pkg/manager/create.go @@ -28,6 +28,7 @@ import ( "github.com/gitpod-io/gitpod/common-go/kubernetes" wsk8s "github.com/gitpod-io/gitpod/common-go/kubernetes" + "github.com/gitpod-io/gitpod/common-go/log" "github.com/gitpod-io/gitpod/common-go/tracing" "github.com/gitpod-io/gitpod/common-go/util" csapi "github.com/gitpod-io/gitpod/content-service/api" @@ -552,6 +553,11 @@ func (m *Manager) createDefiniteWorkspacePod(startContext *startWorkspaceContext } ffidx[feature] = struct{}{} + if feature == api.WorkspaceFeatureFlag_PERSISTENT_VOLUME_CLAIM { + log.WithField("request", startContext).Warn("Request with PVC enabled. Skipping feature.") + continue + } + switch feature { case api.WorkspaceFeatureFlag_FULL_WORKSPACE_BACKUP: removeVolume(&pod, workspaceVolumeName)