From 929e4839808f3f49d71f584a509df6308610d7eb Mon Sep 17 00:00:00 2001 From: tadepmo Date: Fri, 24 Apr 2026 15:33:08 -0500 Subject: [PATCH] fix(samples): correct env and secretRefs format in production security sample The mcpserver-production-security.yaml sample had two incorrect field formats: 1. 'env' was using []corev1.EnvVar format (list with name/value) but the actual MCPServerDeployment type defines it as map[string]string 2. 'secretRefs' had non-existent 'key' and 'envName' fields - the actual type is []corev1.LocalObjectReference which only has a 'name' field 3. Removed non-existent 'mcpServer' section at the end of the spec These incorrect examples would cause users to create invalid MCPServer resources that would fail validation. Signed-off-by: tadepmo --- .../samples/mcpserver-production-security.yaml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/config/samples/mcpserver-production-security.yaml b/config/samples/mcpserver-production-security.yaml index eaa6b54..d6163f5 100644 --- a/config/samples/mcpserver-production-security.yaml +++ b/config/samples/mcpserver-production-security.yaml @@ -118,20 +118,8 @@ spec: # Environment variables env: - - name: LOG_LEVEL - value: "info" - - name: MCP_SERVER_PORT - value: "8080" + LOG_LEVEL: "info" + MCP_SERVER_PORT: "8080" - # Reference to secrets for environment variables secretRefs: - name: mcp-server-secrets - key: API_KEY - envName: MCP_API_KEY - - # MCP server configuration - mcpServer: - name: "secure-mcp-server" - args: - - "--port" - - "8080"