Skip to content

Commit c6169bc

Browse files
authored
Sync from kubeflow/model-registry 426e616 (opendatahub-io#6808)
* Update @odh-dashboard/model-registry tracking to 6f6a50c9c79458e0ad5543c0026c04ca01f19792 (no file changes) * Update @odh-dashboard/model-registry tracking to afe2cbf72fd7dc02070066c7e068de4993c42fde (no file changes) * Update @odh-dashboard/model-registry tracking to 2eba278d6b5919fb088229480039f78d0b069487 (no file changes) * Update @odh-dashboard/model-registry tracking to 0ad813701763aee78c50dfbdc81bf2fa19c5b908 (no file changes) * Update @odh-dashboard/model-registry tracking to 620a30227bc29376f51f812b9355f385c39e586e (no file changes) * Update @odh-dashboard/model-registry tracking to 938d5069cfd77e1c97450b5d1fc5a055e824aa4f (no file changes) * Update @odh-dashboard/model-registry tracking to 72508183e3ec4b58dc34d1bac38402fe558d8a4b (no file changes) * Update @odh-dashboard/model-registry tracking to c4f1224ce3c80180f25b3db1458cb5aa6b07ce97 (no file changes) * Update @odh-dashboard/model-registry tracking to d0bf5834aae43e615b5adbe9ed1dd7c5d84c10ad (no file changes) * Update @odh-dashboard/model-registry tracking to 82182e4a9ec1c95abcd241d6db9276779cd75745 (no file changes) * Update @odh-dashboard/model-registry: Add YAML preview drawer (opendatahub-io#2279) (resolved conflicts) Upstream commit: a63b4775583e63654f2c6ce6ef3a33cea98e085e * Update @odh-dashboard/model-registry: Add runtimeMetadata to types (opendatahub-io#2463) Upstream commit: 426e616d6ecf47a9f7f40201b628df6b24f8e6e7
1 parent c376c9e commit c6169bc

File tree

21 files changed

+1079
-42
lines changed

21 files changed

+1079
-42
lines changed

packages/model-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"branch": "main",
2424
"src": "clients/ui",
2525
"target": "upstream",
26-
"commit": "84d72284bcc09a16ae40f8290531bed38d389a04"
26+
"commit": "426e616d6ecf47a9f7f40201b628df6b24f8e6e7"
2727
},
2828
"module-federation": {
2929
"name": "modelRegistry",

packages/model-registry/upstream/Makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,33 +74,35 @@ dev-bff-federated:
7474

7575
############ Build ############
7676

77+
DOCKER_BUILD_ARGS := --build-arg UI_SOURCE_CODE=clients/ui/frontend --build-arg BFF_SOURCE_CODE=clients/ui/bff
78+
7779
.PHONY: docker-build
7880
docker-build:
79-
$(CONTAINER_TOOL) build --build-arg DEPLOYMENT_MODE=kubeflow --build-arg STYLE_THEME=mui-theme -t ${IMG_UI} .
81+
$(CONTAINER_TOOL) build -f Dockerfile $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=kubeflow --build-arg STYLE_THEME=mui-theme -t ${IMG_UI} ../..
8082

8183
.PHONY: docker-build-standalone
8284
docker-build-standalone:
83-
$(CONTAINER_TOOL) build -f Dockerfile.standalone --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme -t ${IMG_UI_STANDALONE} .
85+
$(CONTAINER_TOOL) build -f Dockerfile.standalone $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme -t ${IMG_UI_STANDALONE} ../..
8486

8587
.PHONY: docker-build-standalone-release
8688
docker-build-standalone-release:
87-
$(CONTAINER_TOOL) build -f Dockerfile.standalone --target release --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme -t ${IMG_UI_STANDALONE} .
89+
$(CONTAINER_TOOL) build -f Dockerfile.standalone --target release $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme -t ${IMG_UI_STANDALONE} ../..
8890

8991
.PHONY: docker-build-federated
9092
docker-build-federated:
91-
$(CONTAINER_TOOL) build --build-arg DEPLOYMENT_MODE=federated --build-arg STYLE_THEME=patternfly -t ${IMG_UI_FEDERATED} .
93+
$(CONTAINER_TOOL) build -f Dockerfile $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=federated --build-arg STYLE_THEME=patternfly -t ${IMG_UI_FEDERATED} ../..
9294

9395
.PHONY: docker-buildx
9496
docker-buildx:
95-
docker buildx build --build-arg DEPLOYMENT_MODE=kubeflow --build-arg STYLE_THEME=mui-theme --platform ${PLATFORM} -t ${IMG_UI} --push .
97+
docker buildx build -f Dockerfile $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=kubeflow --build-arg STYLE_THEME=mui-theme --platform ${PLATFORM} -t ${IMG_UI} --push ../..
9698

9799
.PHONY: docker-buildx-standalone
98100
docker-buildx-standalone:
99-
docker buildx build -f Dockerfile.standalone --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme --platform ${PLATFORM} -t ${IMG_UI_STANDALONE} --push .
101+
docker buildx build -f Dockerfile.standalone $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=standalone --build-arg STYLE_THEME=mui-theme --platform ${PLATFORM} -t ${IMG_UI_STANDALONE} --push ../..
100102

101103
.PHONY: docker-buildx-federated
102104
docker-buildx-federated:
103-
docker buildx build --build-arg DEPLOYMENT_MODE=federated --build-arg STYLE_THEME=patternfly --platform ${PLATFORM} -t ${IMG_UI_FEDERATED} --push .
105+
docker buildx build -f Dockerfile $(DOCKER_BUILD_ARGS) --build-arg DEPLOYMENT_MODE=federated --build-arg STYLE_THEME=patternfly --platform ${PLATFORM} -t ${IMG_UI_FEDERATED} --push ../..
104106

105107
############ Push ############
106108

packages/model-registry/upstream/api/openapi/mod-arch.yaml

Lines changed: 297 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2615,6 +2615,301 @@ components:
26152615
type: string
26162616
lastUpdateTimeSinceEpoch:
26172617
type: string
2618+
McpEnvVarMetadata:
2619+
type: object
2620+
required:
2621+
- name
2622+
- description
2623+
properties:
2624+
name:
2625+
type: string
2626+
description: Environment variable name
2627+
example: API_KEY
2628+
description:
2629+
type: string
2630+
description: Purpose and usage of this variable
2631+
example: API key for authenticating with external service
2632+
required:
2633+
type: boolean
2634+
description: Whether this variable must be set
2635+
default: false
2636+
defaultValue:
2637+
type: string
2638+
description: Default value if not provided
2639+
example: info
2640+
type:
2641+
type: string
2642+
enum: [string, int, boolean, secret]
2643+
description: Expected variable type
2644+
default: string
2645+
example:
2646+
type: string
2647+
description: Example value for documentation purposes
2648+
example: my-api-key-123
2649+
McpResourceRecommendation:
2650+
type: object
2651+
properties:
2652+
minimal:
2653+
type: object
2654+
description: Minimum viable resources for low-traffic scenarios
2655+
properties:
2656+
cpu:
2657+
type: string
2658+
description: CPU request (e.g., 50m, 0.1, 1)
2659+
example: 50m
2660+
memory:
2661+
type: string
2662+
description: Memory request (e.g., 64Mi, 128Mi, 1Gi)
2663+
example: 64Mi
2664+
recommended:
2665+
type: object
2666+
description: Recommended resources for typical production use
2667+
properties:
2668+
cpu:
2669+
type: string
2670+
example: 100m
2671+
memory:
2672+
type: string
2673+
example: 128Mi
2674+
high:
2675+
type: object
2676+
description: Resources for high-traffic or compute-intensive scenarios
2677+
properties:
2678+
cpu:
2679+
type: string
2680+
example: 500m
2681+
memory:
2682+
type: string
2683+
example: 512Mi
2684+
McpRuntimeMetadata:
2685+
type: object
2686+
description: Runtime metadata for deploying this MCP server.
2687+
properties:
2688+
defaultPort:
2689+
type: integer
2690+
description: Default port the MCP server listens on
2691+
example: 8080
2692+
minimum: 1
2693+
maximum: 65535
2694+
defaultArgs:
2695+
type: array
2696+
description: Default command-line arguments for the MCP server
2697+
items:
2698+
type: string
2699+
example: ["--log-level", "info", "--metrics-enabled"]
2700+
requiredEnvironmentVariables:
2701+
type: array
2702+
description: Environment variables that MUST be set for the server to function
2703+
items:
2704+
$ref: "#/components/schemas/McpEnvVarMetadata"
2705+
optionalEnvironmentVariables:
2706+
type: array
2707+
description: Optional environment variables that configure server behavior
2708+
items:
2709+
$ref: "#/components/schemas/McpEnvVarMetadata"
2710+
recommendedResources:
2711+
$ref: "#/components/schemas/McpResourceRecommendation"
2712+
healthEndpoints:
2713+
type: object
2714+
description: Health check endpoint paths
2715+
properties:
2716+
liveness:
2717+
type: string
2718+
description: Liveness probe endpoint path
2719+
example: /health
2720+
readiness:
2721+
type: string
2722+
description: Readiness probe endpoint path
2723+
example: /ready
2724+
capabilities:
2725+
type: object
2726+
description: Runtime capabilities and requirements for this MCP server.
2727+
properties:
2728+
requiresNetwork:
2729+
type: boolean
2730+
description: Whether server requires network access
2731+
default: true
2732+
requiresFileSystem:
2733+
type: boolean
2734+
description: Whether server requires writable filesystem
2735+
default: false
2736+
requiresGPU:
2737+
type: boolean
2738+
description: Whether server requires GPU access
2739+
default: false
2740+
mcpPath:
2741+
type: string
2742+
description: HTTP path where MCP server accepts requests
2743+
default: /mcp
2744+
example: /mcp
2745+
prerequisites:
2746+
$ref: "#/components/schemas/McpPrerequisites"
2747+
McpServiceAccountRequirement:
2748+
type: object
2749+
properties:
2750+
required:
2751+
type: boolean
2752+
description: Whether a ServiceAccount is required
2753+
default: false
2754+
example: true
2755+
hint:
2756+
type: string
2757+
description: Human-readable description of required RBAC permissions
2758+
example: "Requires read-only access to pods and services in the namespace"
2759+
suggestedName:
2760+
type: string
2761+
description: Suggested ServiceAccount name
2762+
example: mcp-server-viewer
2763+
McpSecretKey:
2764+
type: object
2765+
required:
2766+
- key
2767+
- description
2768+
properties:
2769+
key:
2770+
type: string
2771+
description: Secret key name
2772+
example: api-key
2773+
description:
2774+
type: string
2775+
description: What this key should contain
2776+
example: OpenAI API key for authentication
2777+
envVarName:
2778+
type: string
2779+
description: Environment variable name to map this key to
2780+
example: OPENAI_API_KEY
2781+
required:
2782+
type: boolean
2783+
description: Whether this key must be present
2784+
default: false
2785+
McpSecretRequirement:
2786+
type: object
2787+
required:
2788+
- name
2789+
- description
2790+
properties:
2791+
name:
2792+
type: string
2793+
description: Suggested Secret name
2794+
example: openai-credentials
2795+
description:
2796+
type: string
2797+
description: Purpose of the Secret
2798+
example: Create with kubectl create secret generic openai-credentials --from-literal=api-key=YOUR_KEY
2799+
keys:
2800+
type: array
2801+
items:
2802+
$ref: "#/components/schemas/McpSecretKey"
2803+
mountAsFile:
2804+
type: boolean
2805+
description: Whether to mount Secret as files
2806+
default: false
2807+
mountPath:
2808+
type: string
2809+
description: Mount path when mountAsFile is true
2810+
example: /etc/secrets
2811+
McpConfigMapKey:
2812+
type: object
2813+
required:
2814+
- key
2815+
- description
2816+
properties:
2817+
key:
2818+
type: string
2819+
description: ConfigMap key name
2820+
example: config.toml
2821+
description:
2822+
type: string
2823+
description: What this key should contain
2824+
example: Main configuration file for MCP server
2825+
defaultContent:
2826+
type: string
2827+
description: Default content users can copy and customize
2828+
example: |
2829+
log_level = "info"
2830+
port = 8080
2831+
envVarName:
2832+
type: string
2833+
description: Environment variable name if not mounted as file
2834+
example: MCP_CONFIG
2835+
required:
2836+
type: boolean
2837+
description: Whether this key is required
2838+
default: false
2839+
McpConfigMapRequirement:
2840+
type: object
2841+
required:
2842+
- name
2843+
- description
2844+
properties:
2845+
name:
2846+
type: string
2847+
description: Suggested ConfigMap name
2848+
example: mcp-server-config
2849+
description:
2850+
type: string
2851+
description: Purpose of the ConfigMap
2852+
example: Configuration files for MCP server runtime
2853+
keys:
2854+
type: array
2855+
items:
2856+
$ref: "#/components/schemas/McpConfigMapKey"
2857+
mountAsFile:
2858+
type: boolean
2859+
description: Whether to mount ConfigMap as files
2860+
default: true
2861+
mountPath:
2862+
type: string
2863+
description: Mount path when mountAsFile is true
2864+
example: /etc/mcp-config
2865+
McpPrerequisites:
2866+
type: object
2867+
description: Kubernetes prerequisites metadata for MCP server deployment.
2868+
properties:
2869+
serviceAccount:
2870+
$ref: "#/components/schemas/McpServiceAccountRequirement"
2871+
secrets:
2872+
type: array
2873+
description: Required Kubernetes Secrets
2874+
items:
2875+
$ref: "#/components/schemas/McpSecretRequirement"
2876+
configMaps:
2877+
type: array
2878+
description: Required Kubernetes ConfigMaps
2879+
items:
2880+
$ref: "#/components/schemas/McpConfigMapRequirement"
2881+
environmentVariables:
2882+
type: array
2883+
description: Aggregated environment variables list
2884+
items:
2885+
$ref: "#/components/schemas/McpEnvVarMetadata"
2886+
customResources:
2887+
type: array
2888+
description: Other Kubernetes resources needed
2889+
example: ["PersistentVolumeClaim: mcp-data-storage"]
2890+
items:
2891+
type: string
2892+
example:
2893+
serviceAccount:
2894+
required: true
2895+
hint: "Needs 'view' ClusterRole for read-only K8s access"
2896+
suggestedName: mcp-viewer
2897+
secrets:
2898+
- name: openai-credentials
2899+
description: "kubectl create secret generic openai-credentials --from-literal=api-key=YOUR_KEY"
2900+
keys:
2901+
- key: api-key
2902+
description: OpenAI API key
2903+
envVarName: OPENAI_API_KEY
2904+
configMaps:
2905+
- name: mcp-server-config
2906+
description: Configuration files
2907+
mountAsFile: true
2908+
mountPath: /etc/mcp-config
2909+
keys:
2910+
- key: config.toml
2911+
description: Main configuration
2912+
defaultContent: "log_level = \"info\"\nport = 8080\n"
26182913
McpSecurityIndicator:
26192914
description: Security-related indicators for an MCP server.
26202915
type: object
@@ -2742,6 +3037,8 @@ components:
27423037
- remote
27433038
endpoints:
27443039
$ref: "#/components/schemas/McpEndpoints"
3040+
runtimeMetadata:
3041+
$ref: "#/components/schemas/McpRuntimeMetadata"
27453042
McpServerList:
27463043
description: List of McpServer entities.
27473044
allOf:

0 commit comments

Comments
 (0)