Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/library/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ func GetWorkspacePVCInfo(
if err != nil {
return "", "", err
}
if !storageProvisioner.NeedsStorage(&workspace.Spec.Template) {
// No storage provisioned for this workspace
return "", "", nil
}

if _, ok := storageProvisioner.(*storage.PerWorkspaceStorageProvisioner); ok {
pvcName := common.PerWorkspacePVCName(workspace.Status.DevWorkspaceId)
return pvcName, constants.DefaultProjectsSourcesRoot, nil

} else if _, ok := storageProvisioner.(*storage.CommonStorageProvisioner); ok {
if !storageProvisioner.NeedsStorage(&workspace.Spec.Template) {
// No storage provisioned for this workspace
return "", "", nil
}
pvcName := constants.DefaultWorkspacePVCName
if config.Workspace != nil && config.Workspace.PVCName != "" {
pvcName = config.Workspace.PVCName
Expand Down
Loading