You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/ui/Makefile
+35-10Lines changed: 35 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -32,46 +32,67 @@ dev-install-dependencies:
32
32
33
33
.PHONY: dev-bff
34
34
dev-bff:
35
-
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=true MOCK_MR_CLIENT=true DEV_MODE=true STANDALONE_MODE=true
35
+
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=true MOCK_MR_CLIENT=true DEV_MODE=true STANDALONE_MODE=true FEDERATED_PLATFORM=false
36
36
37
37
.PHONY: dev-frontend
38
38
dev-frontend:
39
-
cd frontend && npm run start:dev
39
+
DEPLOYMENT_MODE=standalone && STYLE_THEME=mui-theme cd frontend && npm run start:dev
40
40
41
41
.PHONY: dev-start
42
42
dev-start:
43
43
make -j 2 dev-bff dev-frontend
44
44
45
-
########### Dev Integrated ############
45
+
########### Dev Kubeflow ############
46
46
.PHONY: dev-start-kubeflow
47
47
dev-start-kubeflow:
48
48
make -j 2 dev-bff-kubeflow dev-frontend-kubeflow
49
49
50
50
.PHONY: dev-frontend-kubeflow
51
51
dev-frontend-kubeflow:
52
-
DEPLOYMENT_MODE=integrated&&cd frontend && npm run start:dev
52
+
DEPLOYMENT_MODE=kubeflow && STYLE_THEME=mui-theme&&cd frontend && npm run start:dev
53
53
54
54
.PHONY: dev-bff-kubeflow
55
55
dev-bff-kubeflow:
56
-
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=false MOCK_MR_CLIENT=false DEV_MODE=true STANDALONE_MODE=false DEV_MODE_PORT=8085
56
+
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=false MOCK_MR_CLIENT=false DEV_MODE=true STANDALONE_MODE=false FEDERATED_PLATFORM=false DEV_MODE_PORT=8085
57
+
58
+
########### Dev Federated ############
59
+
.PHONY: dev-start-federated
60
+
dev-start-federated:
61
+
make -j 2 dev-bff-federated dev-frontend-federated
62
+
63
+
.PHONY: dev-frontend-federated
64
+
dev-frontend-federated:
65
+
DEPLOYMENT_MODE=federated && STYLE_THEME=patternfly &&cd frontend && npm run start:dev
66
+
67
+
.PHONY: dev-bff-federated
68
+
dev-bff-federated:
69
+
cd bff && make run PORT=4000 MOCK_K8S_CLIENT=false MOCK_MR_CLIENT=false DEV_MODE=true STANDALONE_MODE=false FEDERATED_PLATFORM=true DEV_MODE_PORT=8085
Copy file name to clipboardExpand all lines: clients/ui/README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ There's two main environments that the Model Registry UI is targeted for:
24
24
25
25
1.**Standalone**: This is the default environment for local development. The UI is served by the BFF and the BFF is responsible for serving the API requests. The BFF exposes a `/namespace` endpoint that returns all the namespaces in the cluster and the UI sends a user header `kubeflow-user` to authenticate the calls.
26
26
27
-
2.**Integrated**: This is the environment where the UI is served by the Kubeflow Ingress and the BFF is served by the Kubeflow API Gateway. The BFF is responsible for serving the API requests and namespace selection is leveraged from Kubeflow.
27
+
2.**Kubeflow**: This is the environment where the UI is served by the Kubeflow Ingress and the BFF is served by the Kubeflow API Gateway. The BFF is responsible for serving the API requests and namespace selection is leveraged from Kubeflow.
28
28
29
29
## Environment Variables
30
30
@@ -49,6 +49,12 @@ The following environment variables are used to configure the deployment and dev
flag.TextVar(&cfg.LogLevel, "log-level", parseLevel(getEnvAsString("LOG_LEVEL", "INFO")), "Sets server log level, possible values: error, warn, info, debug")
34
38
flag.Func("allowed-origins", "Sets allowed origins for CORS purposes, accepts a comma separated list of origins or * to allow all, default none", newOriginParser(&cfg.AllowedOrigins, getEnvAsString("ALLOWED_ORIGINS", "")))
35
39
flag.StringVar(&cfg.AuthMethod, "auth-method", "internal", "Authentication method (internal or user_token)")
36
40
flag.StringVar(&cfg.AuthTokenHeader, "auth-token-header", getEnvAsString("AUTH_TOKEN_HEADER", config.DefaultAuthTokenHeader), "Header used to extract the token (e.g., Authorization)")
37
41
flag.StringVar(&cfg.AuthTokenPrefix, "auth-token-prefix", getEnvAsString("AUTH_TOKEN_PREFIX", config.DefaultAuthTokenPrefix), "Prefix used in the token header (e.g., 'Bearer ')")
42
+
43
+
// Deprecated flags - kept for backward compatibility
44
+
flag.BoolVar(&cfg.StandaloneMode, "standalone-mode", false, "DEPRECATED: Use -deployment-mode=standalone instead")
45
+
flag.BoolVar(&cfg.FederatedPlatform, "federated-platform", false, "DEPRECATED: Use -deployment-mode=federated instead")
46
+
38
47
flag.Parse()
39
48
49
+
// Handle backward compatibility: if old flags are used, override deployment mode
0 commit comments