You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(k8s): dynamically generate devops configmap from active config and gitignore #1231
Template k8s/devops/configmap.example.yaml without concrete repo/user references, gitignore k8s/devops/configmap.yaml, and dynamically generate it from active configuration during deploy-stack.
This pull request sanitizes the devops cluster ConfigMap template and dynamically generates the runtime configuration from active settings during deployment:
Establishes k8s/devops/configmap.example.yaml as the committed template with sanitized placeholder repositories (owner/repo) and machine account (devops-bot).
Untracks k8s/devops/configmap.yaml and adds /k8s/devops/configmap.yaml to .gitignore, preventing user repos and personal machine account names from being committed.
Adds devops_cli.k8s.configmap (ensure_devops_configmap, render_devops_configmap_content) to dynamically generate k8s/devops/configmap.yaml from active settings (service.repos, service.machine_account, or k8s.github_account) when running devops k8s deploy-stack, while preserving existing repos and settings if active configuration is unset.
Integrates ensure_devops_configmap into _render_kustomize_dir in template.py and _apply_single_manifest in stack_lifecycle.py to ensure configmap.yaml is generated before kubectl apply or kubectl kustomize runs.
Adds comprehensive unit tests in tests/test_k8s_configmap.py and updates tests in tests/test_k8s_devops_runtime.py, tests/test_k8s_devops_stack.py, and tests/test_k8s_roadmap_service.py.
Activity
fix(test): accept companion .example.yaml templates in manifest exist…
feat(k8s): dynamically generate devops configmap from active config a…
dan-petty-bot commentedon Oct 5, 2026
What changed
#1232, merged into
release/v0.2.27as fb74c3f.14 file(s) changed.
How it was verified
Check runs at e0ca7e8:
Acceptance Criteria of
docs/agent/tasks/task-1231-k8s-devops-configmap-template.md:k8s/devops/configmap.example.yamlis committed with sanitized placeholders./k8s/devops/configmap.yamlis ignored in.gitignoreand untracked from git.ensure_devops_configmapdynamically generates and synchronizesconfigmap.yamlfrom active configuration.devops k8s deploy-stack --stack devopssynchronizesconfigmap.yamlbefore applying manifests.uv run devops ci.feat(release): v0.2.27 (#1257)