@@ -59,6 +59,8 @@ import {
59
59
ProjectEnvVar ,
60
60
ImageBuildLogInfo ,
61
61
IDESettings ,
62
+ WithReferrerContext ,
63
+ EnvVarWithValue ,
62
64
} from "@gitpod/gitpod-protocol" ;
63
65
import { IAnalyticsWriter } from "@gitpod/gitpod-protocol/lib/analytics" ;
64
66
import { log } from "@gitpod/gitpod-protocol/lib/util/logging" ;
@@ -107,8 +109,6 @@ import { MessageBusIntegration } from "./messagebus-integration";
107
109
import * as path from "path" ;
108
110
import * as grpc from "@grpc/grpc-js" ;
109
111
import { IDEConfig , IDEConfigService } from "../ide-config" ;
110
- import { EnvVarWithValue } from "@gitpod/gitpod-protocol/src/protocol" ;
111
- import { WithReferrerContext } from "@gitpod/gitpod-protocol/lib/protocol" ;
112
112
import { IDEOption , IDEOptions } from "@gitpod/gitpod-protocol/lib/ide-protocol" ;
113
113
import { Deferred } from "@gitpod/gitpod-protocol/lib/util/deferred" ;
114
114
import { ExtendedUser } from "@gitpod/ws-manager/lib/constraints" ;
@@ -132,7 +132,6 @@ export interface StartWorkspaceOptions {
132
132
rethrow ?: boolean ;
133
133
forceDefaultImage ?: boolean ;
134
134
excludeFeatureFlags ?: NamedWorkspaceFeatureFlag [ ] ;
135
- pvcEnabledForPrebuilds ?: boolean ;
136
135
}
137
136
138
137
const MAX_INSTANCE_START_RETRIES = 2 ;
@@ -364,7 +363,6 @@ export class WorkspaceStarter {
364
363
user ,
365
364
options . excludeFeatureFlags || [ ] ,
366
365
ideConfig ,
367
- options . pvcEnabledForPrebuilds || false ,
368
366
) ,
369
367
) ;
370
368
span . log ( { newInstance : instance . id } ) ;
@@ -759,7 +757,6 @@ export class WorkspaceStarter {
759
757
user : User ,
760
758
excludeFeatureFlags : NamedWorkspaceFeatureFlag [ ] ,
761
759
ideConfig : IDEConfig ,
762
- pvcEnabledForPrebuilds : boolean ,
763
760
) : Promise < WorkspaceInstance > {
764
761
const span = TraceContext . startSpan ( "newInstance" , ctx ) ;
765
762
//#endregion IDE resolution TODO(ak) move to IDE service
@@ -853,17 +850,6 @@ export class WorkspaceStarter {
853
850
854
851
featureFlags = featureFlags . filter ( ( f ) => ! excludeFeatureFlags . includes ( f ) ) ;
855
852
856
- if ( workspace . type === "prebuild" ) {
857
- if ( pvcEnabledForPrebuilds === true ) {
858
- featureFlags = featureFlags . concat ( [ "persistent_volume_claim" ] ) ;
859
- } else {
860
- // If PVC is disabled for prebuilds, we need to remove the PVC feature flag.
861
- // This is necessary to ensure if user has PVC enabled on their account, that they
862
- // will not hijack prebuild with PVC and make everyone who use this prebuild to auto enroll into PVC feature.
863
- featureFlags = featureFlags . filter ( ( f ) => f !== "persistent_volume_claim" ) ;
864
- }
865
- }
866
-
867
853
const userTeams = await this . teamDB . findTeamsByUser ( user . id ) ;
868
854
const wsConnectionLimitingEnabled = await getExperimentsClientForBackend ( ) . getValueAsync (
869
855
"workspace_connection_limiting" ,
0 commit comments