forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
173 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
APP_ENV=development | ||
MOCK_AUTH=true | ||
DEPLOYMENT_MODE=standalone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APP_ENV=production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package config | ||
|
||
type EnvConfig struct { | ||
Port int | ||
MockK8Client bool | ||
MockMRClient bool | ||
DevMode bool | ||
DevModePort int | ||
Port int | ||
MockK8Client bool | ||
MockMRClient bool | ||
DevMode bool | ||
StandaloneMode bool | ||
DevModePort int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,23 @@ export enum Theme { | |
// Future themes can be added here | ||
} | ||
|
||
export enum DeploymentMode { | ||
Standalone = 'standalone', | ||
Integrated = 'integrated', | ||
} | ||
|
||
export const isMUITheme = (): boolean => STYLE_THEME === Theme.MUI; | ||
export const isStandalone = (): boolean => DEPLOYMENT_MODE === DeploymentMode.Standalone; | ||
export const isIntegrated = (): boolean => DEPLOYMENT_MODE === DeploymentMode.Integrated; | ||
|
||
const STYLE_THEME = process.env.STYLE_THEME || Theme.MUI; | ||
const DEV_MODE = process.env.APP_ENV === 'development'; | ||
const MOCK_AUTH = process.env.MOCK_AUTH === 'true'; | ||
const DEPLOYMENT_MODE = process.env.DEPLOYMENT_MODE || DeploymentMode.Integrated; | ||
const POLL_INTERVAL = process.env.POLL_INTERVAL ? parseInt(process.env.POLL_INTERVAL) : 30000; | ||
const AUTH_HEADER = process.env.AUTH_HEADER || 'kubeflow-userid'; | ||
const USERNAME = process.env.USERNAME || '[email protected]'; | ||
const IMAGE_DIR = process.env.IMAGE_DIR || 'images'; | ||
const LOGO_LIGHT = process.env.LOGO || 'logo-light-theme.svg'; | ||
|
||
export { POLL_INTERVAL, DEV_MODE, AUTH_HEADER, USERNAME, IMAGE_DIR, LOGO_LIGHT }; | ||
export { POLL_INTERVAL, DEV_MODE, AUTH_HEADER, USERNAME, IMAGE_DIR, LOGO_LIGHT, MOCK_AUTH }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
patchesJson6902: | ||
- path: model-registry-ui-deployment.yaml | ||
target: | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
name: model-registry-ui-deployment | ||
- path: deployment.yaml | ||
target: | ||
group: apps | ||
version: v1 | ||
kind: Deployment | ||
name: model-registry-bff-deployment |
4 changes: 4 additions & 0 deletions
4
clients/ui/manifests/kubeflow/model-registry-bff-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- op: add | ||
path: /spec/template/spec/containers/0/args | ||
value: | ||
- "--standalone-mode=false" |
9 changes: 9 additions & 0 deletions
9
clients/ui/manifests/kubeflow/model-registry-ui-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- op: add | ||
path: /spec/template/spec/containers/0/env | ||
value: | ||
- name: API_URL | ||
value: "http://model-registry-bff-service:4000" | ||
- name: MOCK_AUTH | ||
value: "false" | ||
- name: DEPLOYMENT_MODE | ||
value: "integrated" |
File renamed without changes.
Oops, something went wrong.