Skip to content

Commit b9b46ac

Browse files
committed
allow to enable PVC feature flag for user via ConfigCat
1 parent 01fda65 commit b9b46ac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

components/server/src/workspace/workspace-starter.ts

+13
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,19 @@ export class WorkspaceStarter {
867867
featureFlags = featureFlags.concat(["protected_secrets"]);
868868
}
869869

870+
if (
871+
// ConfigCat already has feature flag named `persistent_volume_claim` that controls if we show
872+
// the option to enable PVC for project prebuilds. So have to use a different name here.
873+
await getExperimentsClientForBackend().getValueAsync("user_pvc", false, {
874+
user,
875+
teams: userTeams,
876+
billingTier,
877+
})
878+
) {
879+
// this allows to control user`s PVC feature flag via ConfigCat
880+
featureFlags = featureFlags.concat(["persistent_volume_claim"]);
881+
}
882+
870883
featureFlags = featureFlags.filter((f) => !excludeFeatureFlags.includes(f));
871884

872885
const wsConnectionLimitingEnabled = await getExperimentsClientForBackend().getValueAsync(

0 commit comments

Comments
 (0)