Skip to content

chore(renovate): take Go 1.27 patch releases only for the operator builder - #74

Merged
KFilippopolitis merged 1 commit into
masterfrom
chore/renovate-golang-version-only
Dec 1, 2026
Merged

KFilippopolitis merged 1 commit into
masterfrom
chore/renovate-golang-version-only

Conversation

@jdaln

@jdaln jdaln commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

golang is only the build stage of operator/Dockerfile; the published image is distroless with the compiled binary. Pinned as golang:1.27@sha256:…, every rebuild of the official image opened a digest PR, even when nothing we build with changed. #72 is an example: same Go 1.27.4, and only the linux/riscv64 image was rebuilt; linux/amd64, the platform the operator is built for, is the same image (sha256:e65b944…) under both digests.

Changes

  • operator/Dockerfile: the builder is pinned to the full Go version, golang:1.27.4@sha256:6c84d96…, the current official digest of that tag (the digest chore(deps): update golang:1.27 docker digest to 6c84d96 #72 proposes). The amd64 build is unchanged.
  • renovate.json:
    • no digest-only updates for golang: a rebuild of the same Go version changes nothing that ships;
    • golang limited to 1.27.x, matching go 1.27.0 in operator/go.mod. Renovate proposes Go 1.27 patch releases (tag and digest together) and no new minor. allowedVersions rather than disabling minor updates: once 1.28 exists, Renovate's combined minor/patch update points at 1.28, and disabling minor would hide every later 1.27 patch as well.

gcr.io/distroless/static:nonroot keeps its digest updates: it ships, and a new digest is its only update path.

Support window

Go 1.27.4 is the latest release. Go supports a release until two newer ones exist, so 1.27 gets security fixes until Go 1.29, expected August 2027. Renovate will not flag that: the move to a new minor is made by hand, in the Dockerfile tag, the go line in operator/go.mod and the allowedVersions pattern.

Supersedes #72.

…ilder

golang is the build stage of operator/Dockerfile and never ships. Pinned
as golang:1.27@sha256, every rebuild of the official image opened a
digest PR even when the Go version and the amd64 image were unchanged
(#72 only rebuilt riscv64).

Pin the builder to the full Go version, golang:1.27.4, at the current
official digest, and stop digest-only updates for golang. Limit golang
to 1.27.x, matching `go 1.27.0` in operator/go.mod, so Renovate proposes
Go 1.27 patch releases (tag and digest together) and never a new minor.

Go 1.27 is supported until Go 1.29 is released, expected August 2027.
The move to a new minor is made by hand: the Dockerfile tag, the go line
in operator/go.mod and the allowedVersions pattern in renovate.json.

@KFilippopolitis KFilippopolitis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@KFilippopolitis
KFilippopolitis merged commit c9a8362 into master Dec 1, 2026
15 checks passed
@KFilippopolitis
KFilippopolitis deleted the chore/renovate-golang-version-only branch December 1, 2026 14:33
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