Skip to content

kmcp deploy fails when working with kmcp secrets #66

@Matcham89

Description

@Matcham89

Issue

When deploying the created manifest after following the documented commands

kubectl apply -f /tmp/mcp-3t52t5 failes due to incorrect spec.secretRef

The created MCPServer manifest is invalid

invalid

    secretRefs:
    - kind: Secret
      name: yt-kmcp-secrets-staging
      namespace: default

valid

    secretRefs:
    - name: yt-kmcp-secrets-staging
    - name: yt-kmcp-env-vars

The command that builds need manifest, I believe needs some tuning to support the correct formating.

Repro

enable staging and populate .env.staging

kmcp secrets sync staging --from-file my-mcp-server/.env.staging --project-dir my-mcp-server

kmcp build --project-dir my-mcp-server -t my-mcp-server:latest --kind-load-cluster kind

kmcp deploy --environment staging --file my-mcp-server/kmcp.yaml --no-inspector --image my-mcp-server:latest

error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions