-
Notifications
You must be signed in to change notification settings - Fork 167
/
const.ts
44 lines (43 loc) · 1.42 KB
/
const.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { StackComponent, SupportedArea, SupportedAreasState } from './types';
export const SupportedAreasStateMap: SupportedAreasState = {
[SupportedArea.BYON]: {
featureFlags: ['disableBYONImageStream'],
},
[SupportedArea.CLUSTER_SETTINGS]: {
featureFlags: ['disableClusterManager'],
},
[SupportedArea.CUSTOM_RUNTIMES]: {
featureFlags: ['disableCustomServingRuntimes'],
reliantAreas: [SupportedArea.MODEL_SERVING],
},
[SupportedArea.DS_PIPELINES]: {
featureFlags: ['disablePipelines'],
requiredComponents: [StackComponent.DS_PIPELINES],
},
[SupportedArea.DS_PROJECTS_VIEW]: {
featureFlags: ['disableProjects'],
},
[SupportedArea.DS_PROJECTS_PERMISSIONS]: {
featureFlags: ['disableProjectSharing'],
reliantAreas: [SupportedArea.DS_PROJECTS_VIEW],
},
[SupportedArea.K_SERVE]: {
featureFlags: ['disableKServe'],
requiredComponents: [StackComponent.K_SERVE],
},
[SupportedArea.MODEL_MESH]: {
featureFlags: ['disableModelMesh'],
requiredComponents: [StackComponent.MODEL_MESH],
},
[SupportedArea.MODEL_SERVING]: {
featureFlags: ['disableModelServing'],
},
[SupportedArea.USER_MANAGEMENT]: {
featureFlags: ['disableUserManagement'],
},
[SupportedArea.WORKBENCHES]: {
// featureFlags: [], // TODO: We want to disable, no flag exists today
requiredComponents: [StackComponent.WORKBENCHES],
reliantAreas: [SupportedArea.DS_PROJECTS_VIEW],
},
};