Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions catalog/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ type KubernetesExtensions struct {
DefaultPort int32 `json:"defaultPort,omitempty"`
NeedsServiceAccount bool `json:"needsServiceAccount,omitempty"`
ServiceAccountHint string `json:"serviceAccountHint,omitempty"`
RunAsRoot bool `json:"runAsRoot,omitempty"`
ConfigMaps []ConfigMap `json:"configMaps,omitempty"`
SecretMounts []SecretMount `json:"secretMounts,omitempty"`
CRTemplate map[string]any `json:"crTemplate,omitempty"`
Expand All @@ -80,6 +81,7 @@ type ConfigMap struct {
Description string `json:"description,omitempty"`
DefaultContent string `json:"defaultContent,omitempty"`
FileName string `json:"fileName,omitempty"`
MountPath string `json:"mountPath,omitempty"`
IsRequired bool `json:"isRequired,omitempty"`
}

Expand Down
9 changes: 8 additions & 1 deletion catalog/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ func TestIsOneClick(t *testing.T) {
Name: "test",
Meta: &Meta{
K8s: &KubernetesExtensions{
CRTemplate: map[string]any{"image": "test:latest"},
CRTemplate: map[string]any{
"source": map[string]any{
"type": "ContainerImage",
"containerImage": map[string]any{
"ref": "test:latest",
},
},
},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion deploy/catalog/ansible-mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ data:
}
]
}],
"_meta": { "io.openshift/k8s": { "defaultPort": 3000 } }
"_meta": { "io.openshift/k8s": { "defaultPort": 3000, "runAsRoot": true } }
}
12 changes: 10 additions & 2 deletions deploy/catalog/everything-mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ data:
"_meta": { "io.openshift/k8s": {
"defaultPort": 3001,
"crTemplate": {
"image": "quay.io/matzew/mcp-everything:latest",
"port": 3001
"source": {
"type": "ContainerImage",
"containerImage": {
"ref": "quay.io/matzew/mcp-everything:latest"
}
},
"config": {
"port": 3001,
"path": "/mcp"
}
}
} }
}
2 changes: 1 addition & 1 deletion deploy/catalog/insights-mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ data:
}
]
}],
"_meta": { "io.openshift/k8s": { "defaultPort": 8000 } }
"_meta": { "io.openshift/k8s": { "defaultPort": 8000, "runAsRoot": true } }
}
23 changes: 18 additions & 5 deletions deploy/catalog/kubernetes-mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,27 @@ data:
"label": "Server Configuration (config.toml)",
"description": "TOML config file mounted at /etc/mcp-config/config.toml",
"defaultContent": "# Kubernetes MCP Server Configuration\nlog_level = 5\nport = \"8080\"\nread_only = true\ntoolsets = [\"core\", \"config\"]\n",
"fileName": "config.toml"
"fileName": "config.toml",
"mountPath": "/etc/mcp-config"
}
],
"crTemplate": {
"image": "quay.io/containers/kubernetes_mcp_server:latest",
"port": 8080,
"args": ["--config", "/etc/mcp-config/config.toml"],
"serviceAccountName": "mcp-viewer"
"source": {
"type": "ContainerImage",
"containerImage": {
"ref": "quay.io/containers/kubernetes_mcp_server:latest"
}
},
"config": {
"port": 8080,
"path": "/mcp",
"arguments": ["--config", "/etc/mcp-config/config.toml"]
},
"runtime": {
"security": {
"serviceAccountName": "mcp-viewer"
}
}
}
} }
}
1 change: 1 addition & 0 deletions deploy/catalog/satellite-mcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ data:
}],
"_meta": { "io.openshift/k8s": {
"defaultPort": 8080,
"runAsRoot": true,
"secretMounts": [
{
"secretKey": "ca.pem",
Expand Down
Loading
Loading