We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc6b5b commit 2612184Copy full SHA for 2612184
platform/backend/src/mcp-server-runtime/k8s-pod.ts
@@ -429,6 +429,10 @@ export default class K8sPod {
429
envMap.forEach((value, key) => {
430
// If this env var is marked as "secret" type, use valueFrom.secretKeyRef
431
if (secretEnvVars.has(key)) {
432
+ // Skip secret-type env vars with empty values (no K8s Secret will be created)
433
+ if (!value || value.trim() === "") {
434
+ return;
435
+ }
436
const k8sSecretName = K8sPod.constructK8sSecretName(this.mcpServer.id);
437
env.push({
438
name: key,
0 commit comments