Skip to content

fix(k8s): support domain templating in deploy-stack manifests and roadmap-service ingress #1229

Closed

Description

@dan-petty

Problem

When devops k8s deploy-stack --stack devops (or --stack all) deploys k8s/devops/roadmap-service/ingress.yaml, it applies the raw manifest via kubectl apply -f <path> without domain substitution. The raw manifest contains placeholder hooks.example.com and pathType: Exact. As a result, Traefik only matches hooks.example.com and returns HTTP 404 for incoming GitHub webhook requests hitting hooks.<user-domain>/webhooks/github. Additionally, k8s/ingress/ingress-routes.yaml lacks the roadmap-service ingress route.

Proposed Solution

  1. Update _apply_manifest_files in src/devops_cli/commands/k8s/stack_lifecycle.py to automatically perform domain template substitution for any manifests containing example.com or domain template variables when a domain is configured/resolved.
  2. Add --domain / -d option to devops k8s deploy-stack, consistent with devops k8s apply and devops k8s render.
  3. Update k8s/devops/roadmap-service/ingress.yaml to use pathType: Prefix.
  4. Add roadmap-service Ingress route to k8s/ingress/ingress-routes.yaml.
  5. Add unit and integration tests verifying domain templating in deploy-stack.

Activity

  1. added this to the v0.2.27 milestone on Oct 5, 2026
  2. added
    type/bug
    scope/k8s
    priority/p1-high
    source/agent
    on Oct 5, 2026
  3. removed this from the v0.2.27 milestone on Oct 5, 2026
  4. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: after v0.2.27 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  5. added this to the v0.2.27 milestone on Oct 5, 2026
  6. removed this from the v0.2.27 milestone on Oct 5, 2026
  7. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: after v0.2.27 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  8. added this to the v0.2.27 milestone on Oct 5, 2026
  9. removed this from the v0.2.27 milestone on Oct 5, 2026
  10. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    Moved to the backlog: after v0.2.27 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)

  11. dan-petty-bot commented on Oct 5, 2026

    @dan-petty-bot
    Collaborator

    What changed

    #1230, merged into release/v0.2.27 as b0ce721.

    Summary

    Resolves #1229.

    • Updates _apply_manifest_files in src/devops_cli/commands/k8s/stack_lifecycle.py to automatically substitute domain placeholders in manifests using resolve_template_domain(), preventing future stack redeployments from reverting ingress hostnames to example.com.
    • Adds --domain / -d support to devops k8s deploy-stack, aligning it with devops k8s apply and devops k8s render.
    • Changes pathType: Exact to pathType: Prefix on /webhooks/github in k8s/devops/roadmap-service/ingress.yaml for robust webhook routing.
    • Registers the roadmap-service Ingress route in k8s/ingress/ingress-routes.yaml for complete coverage under Cloudflare Wildcard Tunnel integration.
    • Adds test cases in tests/test_k8s_devops_stack.py and updates tests/test_k8s_roadmap_service.py.

    9 file(s) changed.

    How it was verified

    Check runs at ee08212:

    • Prune PR DevContainer Images: pass
    • CodeQL: pass
    • Static Analysis: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Tests & Coverage: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    Acceptance Criteria of docs/agent/tasks/task-1229-domain-templating-deploy-stack.md:

    • Ingress template domain placeholders are automatically substituted when deploy-stack runs.
    • deploy-stack supports --domain / -d option.
    • roadmap-service Ingress uses pathType: Prefix.
    • roadmap-service Ingress route is registered in k8s/ingress/ingress-routes.yaml.
    • All 14 CI quality gates pass via uv run devops ci.
    • End-to-end webhook delivery verified in live cluster returning HTTP 200 {"status": "pong"}.
  12. added a commit that references this issue on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/k8ssource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions