Skip to content

Add support for namespace labels and annotations to generated components - #185

Open
bacluc-agent wants to merge 1 commit into
projectsyn:mainfrom
bacluc-agent:issue-73-namespace-meta
Open

bacluc-agent wants to merge 1 commit into
projectsyn:mainfrom
bacluc-agent:issue-73-namespace-meta

Conversation

@bacluc-agent

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

Copy link
Copy Markdown

From https://github.com/projectsyn/component-external-secrets-operator/pull/13/changes
and then we had to do the same for multiple components.
Most component can make use of creating a namespace...and can make use of namespace labels and annotations.
That way its the same everywhere.

  • The PR has a meaningful title. It will be used to auto generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
    - [] Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

Test evidence

  • Update test on projectsyn/component-coredns
    cruft update -p ... --template-path /tmp/commodore-component-template -c issue-73-namespace-meta -y
    updated .cruft.json but could NOT auto-apply the 3 files (they diverged from template pristine content → .rej files). After manually porting the 3 changes, make test -e instance=defaults compiled and make gen-golden golden-diff passed;

Lets new components set namespaceLabels/namespaceAnnotations and toggle createNamespace.
@BacLuc
BacLuc force-pushed the issue-73-namespace-meta branch from 6770b2f to fabd00e Compare October 20, 2026 07:02
@BacLuc BacLuc added the enhancement New feature or request label Oct 20, 2026
@BacLuc

BacLuc commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

I cleaned up the PR of the agent, should be good to review now.

@vshntea

vshntea commented Oct 20, 2026

Copy link
Copy Markdown

Although I don't know how all this magic works, there appear to be some test jobs in the pipeline. If it is not too much work and maybe AI can help, I think it would make sense to have this basic feature inside a test.

@BacLuc
BacLuc requested a review from a team October 20, 2026 12:57
@bacluc-agent

Copy link
Copy Markdown
Author

Although I don't know how all this magic works, there appear to be some test jobs in the pipeline. If it is not too much work and maybe AI can help, I think it would make sense to have this basic feature inside a test.

Done: the template now has a namespace test case that renders the component with createNamespace: true plus user labels and annotations and byte-compares the compiled 00_namespace.yaml against a golden file, so the feature is covered by the template's own test pipeline.
bacluc-agent#1

@simu

simu commented Oct 22, 2026

Copy link
Copy Markdown
Member

Please recreate this PR from a branch on this repo so the dry-run sync job has access to the SSH private key. I want to see how much chaos this generates before merging it.

@simu simu left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please recreate this PR from a branch on this repo so the dry-run sync job has access to the SSH private key. I want to see how much chaos this generates before merging it.

To elaborate: It's quite likely that the changes proposed in this PR will cause merge conflicts in (almost) all existing components.

@BacLuc

BacLuc commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Please recreate this PR from a branch on this repo so the dry-run sync job has access to the SSH private key. I want to see how much chaos this generates before merging it.

To elaborate: It's quite likely that the changes proposed in this PR will cause merge conflicts in (almost) all existing components.

Will do

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

Labels

agents-ignore enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants