Skip to content

Commit

Permalink
[ws-manager] Disable PVC feature
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored and roboquat committed Aug 3, 2022
1 parent 3783204 commit 1fd1173
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/ws-manager/pkg/manager/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1fd1173

Please sign in to comment.