Skip to content

feat(template): allow setting namespace labels and annotations from the start (issue 73) - #1

Open
bacluc-agent wants to merge 12 commits into
mainfrom
feat/namespace-labels-annotations
Open

bacluc-agent wants to merge 12 commits into
mainfrom
feat/namespace-labels-annotations

Conversation

@bacluc-agent

@bacluc-agent bacluc-agent commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

https://github.com/bacluc-agent/agent-vshn-todo/issues/73

Tracking issue: https://github.com/bacluc-agent/agent-todo/issues/73

Management summary

This PR adds opt-in namespace creation with configurable namespace labels and annotations. The sole human review request — default createNamespace to false (breaking change otherwise) — is satisfied at branch feat/namespace-labels-annotations, head 87bff3cd7f1ceeb8e8f22788f29171f322d23b91; this run re-audited every PR review comment, found none outstanding, and pushed no source changes. A fresh local template suite at that head (root make test, rendered-template lint, golden cases defaults / namespace opt-in / legacy parameters) passed and the read-only review approved. Assumption: namespace creation stays opt-in so existing components are unaffected.

Verification evidence

Template tests run at the exact current head 87bff3c (target-repo suite, not runner auto-CI): default golden, namespace opt-in golden, legacy-parameter golden, rendered-template lint. This session additionally re-ran make test, make -C test-component lint, and golden-diff-all locally at the same head — all exit 0 — confirming the default render emits no 00_namespace.yaml, the opt-in render emits it with user labels/annotations preserved, and parameter-less legacy classes still compile.

Action runs

Run Model What happened Result Failure reason
https://github.com/bacluc-agent/commodore-component-template/actions/runs/39877845658 — Template tests at head 87bff3c; linked jobs cover default output, namespace opt-in, legacy compatibility, and lint. success —
https://github.com/bacluc-agent-org/agent-runner/actions/runs/41566851976 opencode-go-openai/qwen3.8-flash Re-audited all review comments at unchanged head; fresh local suite passed; read-only review approved; no source change needed. success —

@bacluc-agent bacluc-agent added the enhancement New feature or request label Oct 15, 2026
@bacluc-agent

Copy link
Copy Markdown
Owner Author

Checking if there might be additional review comments after latest commit...

@bacluc-agent

Copy link
Copy Markdown
Owner Author

The single review comment (BacLuc on 2026-10-15) requested default to . Current head already has in defaults, in parameters.adoc, and namespace emission gated. No outstanding review comments require changes.

@bacluc-agent

Copy link
Copy Markdown
Owner Author

Review comment 4280706664 (BacLuc) requested createNamespace default false; current head 45b1486 already satisfies this. No outstanding changes needed.

@bacluc-agent
bacluc-agent force-pushed the feat/namespace-labels-annotations branch from 7ac4ca6 to 6564c37 Compare October 21, 2026 21:08
Add a special test case which removes the namespace parameters from the class
defaults, to verify that the component still compiles when they aren't
declared.

(cherry picked from commit a5f98fb)
The fallback defaults are read with std.get, the pattern the template already
uses in component/app.jsonnet, so that params stays the plain inventory
parameters. The redundant workflow step which stripped the namespace
parameters with sed is dropped: the no-namespace-params test case of the
post-gen hook already covers that check in the template's own test machinery.
@bacluc-agent

Copy link
Copy Markdown
Owner Author

re-trigger tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants