Skip to content

Commit f185ea4

Browse files
committed
Add feature flag for YAML viewer
1 parent edb24a5 commit f185ea4

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

frontend/src/__mocks__/mockDashboardConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export type MockDashboardConfigType = {
5050
mlflow?: boolean;
5151
projectRBAC?: boolean;
5252
disableLLMd?: boolean;
53+
YAMLViewer?: boolean;
5354
};
5455

5556
export const mockDashboardConfig = ({
@@ -93,6 +94,7 @@ export const mockDashboardConfig = ({
9394
trainingJobs = true,
9495
observabilityDashboard = false,
9596
disableLLMd = false,
97+
YAMLViewer = false,
9698
hardwareProfileOrder = ['test-hardware-profile'],
9799
modelServerSizes = [
98100
{
@@ -259,6 +261,7 @@ export const mockDashboardConfig = ({
259261
trainingJobs,
260262
observabilityDashboard,
261263
disableLLMd,
264+
YAMLViewer,
262265
},
263266
notebookController: {
264267
enabled: !disableNotebookController,

frontend/src/concepts/areas/const.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const techPreviewFlags = {
1010
mlflow: false,
1111
projectRBAC: true,
1212
observabilityDashboard: false,
13+
YAMLViewer: false,
1314
} satisfies Partial<DashboardCommonConfig>;
1415

1516
export const devTemporaryFeatureFlags = {
@@ -207,6 +208,10 @@ export const SupportedAreasStateMap: SupportedAreasState = {
207208
[SupportedArea.PROJECT_RBAC_SETTINGS]: {
208209
featureFlags: ['projectRBAC'],
209210
},
211+
[SupportedArea.YAML_VIEWER]: {
212+
featureFlags: ['YAMLViewer'],
213+
reliantAreas: [SupportedArea.LLMD_SERVING],
214+
},
210215
};
211216

212217
/** Maps each DataScienceStackComponent to its human-readable name **/

frontend/src/concepts/areas/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export enum SupportedArea {
6060
SERVING_RUNTIME_PARAMS = 'serving-runtime-params',
6161
MODEL_AS_SERVICE = 'model-as-service',
6262
LLMD_SERVING = 'llmd-serving',
63+
YAML_VIEWER = 'yaml-viewer',
64+
6365
/* Distributed Workloads areas */
6466
DISTRIBUTED_WORKLOADS = 'distributed-workloads',
6567
KUEUE = 'kueue',

frontend/src/k8sTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@ export type DashboardCommonConfig = {
13081308
projectRBAC?: boolean;
13091309
observabilityDashboard?: boolean;
13101310
disableLLMd?: boolean;
1311+
YAMLViewer?: boolean;
13111312
};
13121313

13131314
// [1] Intentionally disjointed fields from the CRD in this type definition

0 commit comments

Comments
 (0)