Skip to content

Commit 9c576a2

Browse files
ederignlucferbux
authored andcommitted
Refactor Kubernetes Client Factory and Introduce Red Hat Extensions
- Added a new function `NewKubernetesClientFactory` to handle client creation based on authentication method. - Introduced a new markdown file for documenting BFF handler extensions for downstream builds. - Implemented handler overrides for Model Registry Settings to support Red Hat-specific behavior. - Created a new repository for Model Registry Settings with Kubernetes integration. - Added methods for CRUD operations on Model Registry settings, including handling database secrets. - Implemented conversion functions for unstructured Kubernetes objects to strongly typed models. - Ensured that all new functionality adheres to existing interfaces and maintains backward compatibility. feat: adapt the code to upstream Signed-off-by: lucferbux <[email protected]>
1 parent 6902a91 commit 9c576a2

File tree

9 files changed

+613
-67
lines changed

9 files changed

+613
-67
lines changed

clients/ui/bff/.vscode/launch.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"program": "${workspaceFolder}/bin/bff",
1010
"args": [
1111
"--port=4000",
12-
"--auth-method=internal",
12+
"--auth-method=user_token",
1313
"--auth-token-header=Authorization",
1414
"--auth-token-prefix=Bearer",
1515
"--static-assets-dir=./static",
@@ -30,7 +30,7 @@
3030
"program": "${workspaceFolder}/bin/bff",
3131
"args": [
3232
"--port=4000",
33-
"--auth-method=internal",
33+
"--auth-method=user_token",
3434
"--auth-token-header=Authorization",
3535
"--auth-token-prefix=Bearer",
3636
"--static-assets-dir=./static",
@@ -51,13 +51,34 @@
5151
"program": "${workspaceFolder}/bin/bff",
5252
"args": [
5353
"--port=4000",
54-
"--auth-method=internal",
54+
"--auth-method=user_token",
5555
"--auth-token-header=Authorization",
5656
"--auth-token-prefix=Bearer",
5757
"--static-assets-dir=./static",
5858
"--mock-k8s-client=false",
5959
"--mock-mr-client=false",
60-
"--dev-mode=false",
60+
"--dev-mode=true",
61+
"--dev-mode-port=8080",
62+
"--standalone-mode=true",
63+
"--log-level=info"
64+
],
65+
"preLaunchTask": "make build debug"
66+
},
67+
{
68+
"name": "XFW Debug BFF (MOCK_K8S_CLIENT=false, MOCK_MR_CLIENT=false)",
69+
"type": "go",
70+
"request": "launch",
71+
"mode": "exec",
72+
"program": "${workspaceFolder}/bin/bff",
73+
"args": [
74+
"--port=4000",
75+
"--auth-method=user_token_red_hat",
76+
"--auth-token-header=X-Forwarded-Access-Token",
77+
"--auth-token-prefix=",
78+
"--static-assets-dir=./static",
79+
"--mock-k8s-client=false",
80+
"--mock-mr-client=false",
81+
"--dev-mode=true",
6182
"--dev-mode-port=8080",
6283
"--standalone-mode=true",
6384
"--log-level=info"

0 commit comments

Comments
 (0)