capi-operator v0.30 refuses a provider whose fetchConfig.selector matches
more than one ConfigMap, and it decides that before it reads spec.version
(processProviderConfigMaps). Talos bootstrap, KubeVirt, Kamaji, Proxmox and
in-cluster IPAM selected their bundle by a provider-kind label alone, so a
version bump left the old and the new ConfigMap matching for the length of
the Helm upgrade and failed that reconcile. Core and kubeadm already carry
provider.cluster.x-k8s.io/version in both the ConfigMap and the selector;
this brings the remaining five packages in line.
Each package now defines that version once, in templates/_helpers.tpl, and
the ConfigMap name, its version label, the selector and spec.version all
include it. Hard-coding the value in four places per provider meant a bump
could move the ConfigMap name and leave the label behind, and two bumps in
flight in the same package (as #5243 does for capmox and in-cluster IPAM)
would then disagree with each other. With one definition a bump is one line
and the four references cannot drift. The Talos pair uses its own define
because it tracks CABPT, while the kubeadm pair keeps the chart appVersion.
The comment in the Proxmox ConfigMap claiming the operator would still pick
the right one described the v0.30-or-earlier behaviour and is replaced with
what the operator does now.
Refs: #5394
Assisted-by: LLM
Signed-off-by: Goldloli <39011904+Goldloli@users.noreply.github.com>