Skip to content

Commit 0d278e0

Browse files
test(e2e): pin Kubernetes to v1.33.12 to avoid KCM VAP type-checker panic
The e2e cluster bootstrap let `talosctl gen config` pick its bundled default Kubernetes version (v1.33.1 for Talos v1.13.0). That version predates the fix for the kube-controller-manager ValidatingAdmissionPolicy status type-checker nil-pointer panic on `additionalProperties: true` schemas (kubernetes/kubernetes#135155, backported to release-1.33 in #136958, first released in v1.33.10). cozystack-api's aggregated Tenant schema publishes `additionalProperties: true`, so on the older default KCM crash-loops cluster-wide during install and fails E2E. Pin the e2e management cluster to v1.33.12 (latest 1.33 patch) so it runs a Kubernetes that contains the fix. This complements the schema-side fix in #2867 and is independent of it. Refs: #2863 Assisted-By: Claude <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent c6f6fee commit 0d278e0

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)