Skip to content

Allow for excluding CRD template files#311

Merged
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:crd-template-exclude
Jul 22, 2025
Merged

Allow for excluding CRD template files#311
cert-manager-prow[bot] merged 1 commit into
cert-manager:mainfrom
erikgb:crd-template-exclude

Conversation

@erikgb
Copy link
Copy Markdown
Member

@erikgb erikgb commented Jul 22, 2025

This adds a new feature to the Helm module, allowing exclusion of CRD(s) from getting included into the Helm chart. This feature is needed to avoid introducing the ClusterBundle API prematurely in trust-manger, ref. cert-manager/trust-manager#662.

Generating the CRD will allow me to start working on validation, including tests, for the new API. But at the same time, avoiding the new CRD from being available to users.

@cert-manager-prow cert-manager-prow Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 22, 2025
@erikgb erikgb force-pushed the crd-template-exclude branch 3 times, most recently from b4d7cfd to c0906e6 Compare July 22, 2025 07:45
@cert-manager-prow cert-manager-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 22, 2025
@erikgb erikgb force-pushed the crd-template-exclude branch 3 times, most recently from 2206eea to 9c28a33 Compare July 22, 2025 08:21
@erikgb erikgb changed the title WIP: Allow for excluding CRD template files Allow for excluding CRD template files Jul 22, 2025
@cert-manager-prow cert-manager-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 22, 2025
@erikgb erikgb requested a review from inteon July 22, 2025 08:33
Comment thread modules/helm/crds.mk Outdated
@erikgb erikgb force-pushed the crd-template-exclude branch from 9c28a33 to 50ef480 Compare July 22, 2025 09:23
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@erikgb erikgb force-pushed the crd-template-exclude branch from 50ef480 to e287a60 Compare July 22, 2025 09:23
Comment thread modules/helm/crds.mk
# Space-separated list of basenames to exclude (e.g. foo.yaml *_test.yaml)
crds_template_exclude_pattern ?=

define filter-out-basenames
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.

I don't understand how this works, but I trust you that it works.

@inteon
Copy link
Copy Markdown
Member

inteon commented Jul 22, 2025

/approve
/lgtm

@cert-manager-prow cert-manager-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 22, 2025
@cert-manager-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: inteon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 22, 2025
@cert-manager-prow cert-manager-prow Bot merged commit 197cd67 into cert-manager:main Jul 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants