Skip to content

Commit 9d43e42

Browse files
authored
test(e2e): pin Kubernetes to v1.33.12 to avoid KCM VAP type-checker panic (#2868)
## What this PR does The e2e cluster bootstrap (`hack/e2e-prepare-cluster.bats`) let `talosctl gen config` pick its bundled default Kubernetes version — **v1.33.1** for Talos v1.13.0. v1.33.1 predates the fix for the kube-controller-manager `ValidatingAdmissionPolicy` status type-checker nil-pointer panic on `additionalProperties: true` schemas ([kubernetes/kubernetes#135155](kubernetes/kubernetes#135155), backported to `release-1.33` in [#136958](kubernetes/kubernetes#136958), first released in **v1.33.10**). Because `cozystack-api` publishes `additionalProperties: true` on the aggregated Tenant schema, KCM crash-loops cluster-wide during install on the old default and fails E2E (#2863). This pins the e2e **management** cluster to **v1.33.12** (latest 1.33 patch), which contains the fix. It complements — and is independent of — the schema-side fix in #2867; either alone avoids the panic. Refs: #2863 ### Release note ```release-note NONE ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated end-to-end test cluster configuration to explicitly pin the Kubernetes version for more consistent test execution. * Added explanatory comments clarifying the version choice and kept existing secret/configuration wiring intact. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents 42ca3e6 + 96b9f5e commit 9d43e42

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎hack/e2e-prepare-cluster.bats‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,14 @@ EOF
231231
fi
232232

233233
rm -f controlplane.yaml worker.yaml talosconfig kubeconfig
234+
# Pin Kubernetes to v1.33.12 instead of talosctl's bundled default (v1.33.1).
235+
# v1.33.1 predates the fix for the kube-controller-manager VAP status
236+
# type-checker nil-pointer panic on `additionalProperties: true` schemas
237+
# (kubernetes/kubernetes#135155, backported to release-1.33 in #136958,
238+
# first released in v1.33.10). On the older default, cozystack-api's
239+
# aggregated Tenant schema crash-loops KCM during install. See cozystack#2863.
234240
talosctl gen config --with-secrets secrets.yaml cozystack https://192.168.123.10:6443 \
241+
--kubernetes-version v1.33.12 \
235242
[email protected] --config-patch-control-plane @patch-controlplane.yaml
236243
}
237244

0 commit comments

Comments
 (0)