Skip to content

Commit 2c2c030

Browse files
authored
chore(deps): roll up pending Renovate updates and move to Go 1.27.1 (#4447)
## What this PR does This replaces the open Renovate PRs with one rollup. Go modules move to their newest releases that keep the Kubernetes libraries and controller-runtime where they are, the toolchain and builder images move to Go 1.27.1, and the first-party code gets the Go 1.27 modernizers. Tests for the code the bumps touch come first, in their own commits, and pass on both the old and the new dependencies. Before the bumps: - The e2e sandbox image builds again: dl.min.io answers 410 for mc since MinIO archived it, so mc now comes from its last GitHub release with a pinned checksum. - Renovate stops offering tags of the apimachinery fork. They mirror upstream, so #2999 is a downgrade that drops our patch. - `make unit-tests` now runs the tests of the nested Go modules (kubevirt-csi-driver, token-proxy, kubeovn-webhook, api/apps/v1alpha1). They never ran in CI before. - New tests: JWT verification in the dashboard token proxy, the kube-ovn plunger metrics, cert-manager object idempotency in the tenant gateway, values-file layering in the operator, and the kubevirt CSI driver wrapper. - One real fix. The lineage webhook decoded admitted objects with encoding/json, so an int64 above 2^53 came back rounded. jsonpatch v2.5 compares numbers exactly and would emit a replace that rewrites such a field in the pod. The webhook now decodes with apimachinery's json. Held back on purpose, with the reasons in the commit messages: - Kubernetes libraries stay on v0.35. #3001 needs the apimachinery fork rebased onto release-1.37 first. - cel-go v0.29.2 and etcd v3.6.15, the lines k8s.io/apiserver v0.35 is built and tested with. - grpc v1.83.2. v1.84.0 is affected by GO-2026-6443 and no v1.84 patch release carries the fix yet. - kubevirt.io/api and the CDI API stay on what upstream csi-driver builds against. From CDI v1.60 it no longer compiles. - api/apps/v1alpha1 keeps go 1.26.4, so consumers of the published types are not forced onto Go 1.27. - go fix runs without embedlit (Go 1.27-only syntax, breaks backports to release branches on Go 1.26) and omitzero (would make metadata, spec and status required in the published OpenAPI schemas), and one errorsastype rewrite that did not compile is left out. govulncheck reports nothing reachable in any of the five modules, standard library included. Supersedes #4311, #4310, #4309, #3452, #3993, #3927, #3902, #3805, #3451, #3415, #3414, #3413, #3302, #4050 and #3363. #3001 stays open. Not checked locally: the images that build upstream projects (kube-ovn, kamaji, cilium, linstor-csi and others) with the Go 1.27 builder. The image build jobs of this PR cover them. Closes #4487. ### Screenshots No UI changes. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note ```release-note chore(deps): move the toolchain and builder images to Go 1.27.1 and raise Go dependencies to their latest compatible releases, closing the published advisories; the lineage webhook no longer rewrites int64 fields above 2^53 in admitted objects. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a restore resource policy option for Velero strategies. * Added a test target to run Go tests across tracked modules. * **Bug Fixes** * Updated the end-to-end test environment to download and verify the MinIO client from its current release location. * Added coverage for token validation, webhook patching, controller behavior, and reconciliation. * **Maintenance** * Updated the Go toolchain, dependencies, and container image versions. * Refreshed pinned workflow actions and base image digests. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 4a2dea2 + 7a0aab2 commit 2c2c030

169 files changed

Lines changed: 2266 additions & 1435 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/renovate.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@
7777
"matchManagers": ["gomod"],
7878
"matchPackageNames": ["kubevirt.io/csi-driver"],
7979
"enabled": false
80+
},
81+
{
82+
"description": "k8s.io/apimachinery is replaced by the cozystack/apimachinery fork at a pseudo-version cut from a rebased branch that carries the ConvertToVersion patch. The fork's release tags are stale upstream mirrors, so Renovate proposes one of them as an 'update' that is in fact a downgrade dropping the patch. Advance the replace by hand whenever the fork is rebased onto a new Kubernetes line.",
83+
"matchManagers": ["gomod"],
84+
"matchPackageNames": ["github.com/cozystack/apimachinery"],
85+
"enabled": false
8086
}
8187
]
8288
}

‎.github/workflows/api-review-gate.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
PR_NUMBER: ${{ github.event.pull_request.number }}
4040
steps:
4141
- name: Checkout head
42-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
42+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
4343
with:
4444
ref: ${{ github.event.pull_request.head.sha }}
4545
fetch-depth: 0

‎.github/workflows/backport.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ jobs:
282282
# 3. Checkout (required by backport‑action)
283283
- name: Checkout repository
284284
if: steps.target.outcome == 'success' && steps.guard.outputs.already_merged != 'true'
285-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
285+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
286286

287287
# 4. Create the back‑port pull request
288288
- name: Create back‑port PR

‎.github/workflows/build-main.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
steps:
5353
- name: Checkout code
54-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
54+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
5555
with:
5656
fetch-depth: 0
5757
fetch-tags: true

‎.github/workflows/build-release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
echo "Building line '$REF_NAME'."
9898
9999
- name: Checkout code
100-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
100+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
101101
with:
102102
fetch-depth: 0
103103
fetch-tags: true

‎.github/workflows/changelog-generate.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
# upper bound" a property of the checkout rather than an instruction the
132132
# prompt has to talk the agent into honouring.
133133
- name: Checkout rc tag
134-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
134+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
135135
with:
136136
ref: ${{ steps.parse.outputs.rc_tag }}
137137
fetch-depth: 0
@@ -147,7 +147,7 @@ jobs:
147147
# actions/checkout rather than by shelling out to the repo's own tooling.
148148
# Gitignored, so the caller's `git add -A` never stages it.
149149
- name: Checkout release tooling from the dispatch ref
150-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
150+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
151151
with:
152152
ref: ${{ github.ref_name }}
153153
path: .release-tooling

‎.github/workflows/changelog-rc.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# parse-rc-tag.sh lives in the tree, so overlay the dispatch ref's hack/
6868
# before calling it. Gitignored; nothing in this job commits.
6969
- name: Checkout release tooling from the dispatch ref
70-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
70+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
7171
with:
7272
ref: ${{ github.ref_name }}
7373
path: .release-tooling
@@ -177,7 +177,7 @@ jobs:
177177
# parse job (before generation), so it is not re-checked here — a checkout
178178
# failure for a branch deleted in the meantime is a rare, self-evident race.
179179
- name: Checkout rc staging branch
180-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
180+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
181181
with:
182182
ref: ${{ needs.parse.outputs.rc_branch }}
183183
fetch-depth: 0
@@ -188,7 +188,7 @@ jobs:
188188
# hack/validate-changelog.sh. Overlay the current tooling from the dispatch
189189
# ref, exactly as promote-rc and changelog-generate do. Gitignored.
190190
- name: Checkout release tooling from the dispatch ref
191-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
191+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
192192
with:
193193
ref: ${{ github.ref_name }}
194194
path: .release-tooling

‎.github/workflows/codegen-drift.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
contents: read
3737
steps:
3838
- name: Checkout code
39-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
39+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
4040

4141
- name: Set up Go
4242
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5

‎.github/workflows/cut-prerelease.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
# credential (persist-credentials, default on) so the bare push below is
167167
# app-authenticated, and to resolve HEAD. One ref, shallow, no tags.
168168
- name: Check out the dispatched branch
169-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
169+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
170170
with:
171171
fetch-depth: 1
172172
token: ${{ steps.app-token.outputs.token }}

‎.github/workflows/e2e-fork.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ jobs:
368368
# The base repo's own merge ref — safe to fetch, not fork-controlled code
369369
# execution. pr.patch is applied as DATA below; nothing from the tree runs.
370370
- name: Checkout PR merge ref
371-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
371+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
372372
with:
373373
ref: refs/pull/${{ needs.resolve.outputs.pr_number }}/merge
374374
fetch-depth: 0
@@ -561,7 +561,7 @@ jobs:
561561
SANDBOX_NAME: cozy-e2e-sandbox-fork-${{ github.run_id }}
562562
steps:
563563
- name: Checkout PR merge ref
564-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
564+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
565565
with:
566566
ref: refs/pull/${{ needs.resolve.outputs.pr_number }}/merge
567567
fetch-depth: 0

0 commit comments

Comments
 (0)