Skip to content

Conversation

@erikgb
Copy link
Member

@erikgb erikgb commented Feb 2, 2025

This PR re-scaffolds the project using the latest release of kubebuilder (4.5.0). I have intentionally tried to deviate as little as possible from the suggested/recommended structure, regardless of whether I like it. 😉 Hopefully this re-scaffold process will be simpler to do the next time. At the same time I have attempted not to leave any "loose ends" and not make unnecessary/unrelated changes.

Main motivation for this PR was to remove use of the long-time deprecated kube-rbac-proxy and avoid using deprecated kustomize features.

Relates to #52 (initial attempt to do this).

@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: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 2, 2025
@erikgb erikgb changed the title Rescaffold with kubebuilder 4.4.0 Rescaffold with kubebuilder 4.5.0 Feb 2, 2025
Signed-off-by: Erik Godding Boye <[email protected]>
@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. and removed dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. labels Feb 11, 2025
@erikgb erikgb marked this pull request as ready for review February 11, 2025 19:54
@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 Feb 11, 2025
@erikgb erikgb changed the title Rescaffold with kubebuilder 4.5.0 Re-scaffold with kubebuilder 4.5.0 Feb 11, 2025
@erikgb erikgb requested a review from wallrj February 11, 2025 20:12
var enableHTTP2 bool
var tlsOpts []func(*tls.Config)
flag.StringVar(&metricsAddr, "metrics-bind-address", "0", "The address the metrics endpoint binds to. "+
"Use :8443 for HTTPS or :8080 for HTTP, or leave as 0 to disable the metrics service.")
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't make sense. Is it 127.0.0.1:8443 / 0.0.0.0:8443, or is it really :8443? And if it's the latter, why is it a string?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, that's just how it is configurable in controller-runtime - ref. https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/metrics/server#Options. 😉

@cert-manager-prow cert-manager-prow bot added dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. and removed dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Feb 27, 2025
Co-authored-by: Josh Soref <[email protected]>
Signed-off-by: Erik Godding Boye <[email protected]>
@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. and removed dco-signoff: no Indicates that at least one commit in this pull request is missing the DCO sign-off message. labels Feb 27, 2025
Copy link
Member

@wallrj wallrj left a comment

Choose a reason for hiding this comment

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

Thanks @erikgb

And thank @jsoref for your reviews.

I skimmed through the changes and compared some of the files to the kubebuilder files:

A lot has changed!

I last updated the skaffolding in #38

The release.yaml file is quite important because that's how we make the sample-external-issuer available in the cert-manager E2E tests.
We can revive that in a followup PR if you like.

/approve
/lgtm

Copy link
Member

Choose a reason for hiding this comment

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

@cert-manager-prow cert-manager-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2025
@cert-manager-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wallrj

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

The pull request process is described here

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 Feb 28, 2025
@cert-manager-prow cert-manager-prow bot merged commit 1e9d091 into cert-manager:main Feb 28, 2025
5 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants