Skip to content

Upgrade to Go 1.27 + buildx cross-compilation - #215

Open
terinjokes wants to merge 3 commits into
trunkfrom
terin/go1.27
Open

Upgrade to Go 1.27 + buildx cross-compilation#215
terinjokes wants to merge 3 commits into
trunkfrom
terin/go1.27

Conversation

@terinjokes

Copy link
Copy Markdown
Contributor

Upgrade to Go 1.27 and modify Docker build to utilize buildx's native cross-compilation support.

Also removes the setting of the deprecated "SetCAOnCertificateRequest",
which will stop populating the "ca.crt" field in the Kubernetes Secret.
For a while now QEMU has emulated arm64 utilizing only a single core.
This resulted in our linux/arm64 builds taking an extremely long time.

Docker supports native cross-compilation with the special
`$BUILDPLATFORM` and `$TARGETPLATFORM` build arguments. This allows us
to cross-compile the controller on the fast native architecture, then
copy the resulting binary onto an image layer of the target architecture.
@terinjokes
terinjokes requested a review from a team August 23, 2026 23:40
@terinjokes terinjokes self-assigned this Aug 23, 2026
@terinjokes

terinjokes commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

The CodeQL failure was fixed upstream github/codeql@d24ab5e (github/codeql#22042), but not yet tagged in a release.

Check: s.Check,
Sign: s.Sign,
EventRecorder: mgr.GetEventRecorder("originissuer." + v1.GroupVersion.Group),
SetCAOnCertificateRequest: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this going to be a user-facing behavior change? I know the field is deprecated, but it looks like it still exists in v0.12.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, ca.crt would not be added on newer Secrets. I've had cert-manager/issuer-lib#204 open for a year and a half, and in that time have struggled to come up with software that cares.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍🏻

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants