Skip to content

Use controller-gen to generate applyconfigurations#657

Merged
cert-manager-prow[bot] merged 1 commit intocert-manager:mainfrom
erikgb:controller-gen-ac
Jul 17, 2025
Merged

Use controller-gen to generate applyconfigurations#657
cert-manager-prow[bot] merged 1 commit intocert-manager:mainfrom
erikgb:controller-gen-ac

Conversation

@erikgb
Copy link
Copy Markdown
Member

@erikgb erikgb commented Jul 17, 2025

Instead of using applyconfiguration-gen directly, it is now possible to do it using controller-gen. This will enable us to remove the applyconfiguration-gen version configuration from makefile-modules.

I would also like to "promote" this to the makefile-modules controller-gen module, which will enable applyconfiguration generation to all our projects.
This will enable us to resolve cert-manager/cert-manager#5783 and also migrate away from the deprecated fake NewSimpleClientSet functions.

I am removing the generated applyconfigurations for the new (and unpublished) API. It was a mistake to add them previously, as the new API is not yet available. With the current approach for generating, this was hard to avoid. But now we can control this with markers in code.

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
@cert-manager-prow cert-manager-prow bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jul 17, 2025
@erikgb erikgb requested review from SgtCoDFish and inteon July 17, 2025 19:34
@inteon
Copy link
Copy Markdown
Member

inteon commented Jul 17, 2025

/lgtm
/approve

@cert-manager-prow cert-manager-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 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 17, 2025
@cert-manager-prow cert-manager-prow bot merged commit cd89ae0 into cert-manager:main Jul 17, 2025
6 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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add k8s.io/client-go/applyconfigurations style *ApplyConfigurations for the included CRDs

2 participants