Files
cozystack/packages/system
Andrei Kvapil 9680ed64df feat(cluster-api)!: update Cluster API to v1.14.4 (#4902)
<!-- Thank you for making a contribution! Here are some tips for you:
- Use Conventional Commits for the PR title: `type(scope): description`
- Types: feat, fix, security (a fix that comes through a security
advisory), docs, style, refactor, perf, test, build, ci, chore
- Scopes are not an exhaustive list. Pick the most specific scope for
the change.
- Breaking changes: append `!` after type/scope or add a `BREAKING
CHANGE:` footer.
- If it is a work in progress, consider creating this PR as a draft.
- Ask for opinion and review in the community chats when needed.
- Fixes merged to main reach supported release lines through the
backport batch automatically. Do not open backport PRs by hand.
-->

## What this PR does

Updates the Cluster API stack with an automatic intermediate upgrade for
existing v1.10 providers.

The core chart upgrades them through v1.13.8 before Helm applies the
final manifests. The hook fails on API errors, conflicting changes or
timeouts. The hook image goes through cozy-lib. The core chart's
PackageSource declares that library, otherwise the packaged chart can't
render the hook. Fresh installations skip the intermediate providers.
Helm keeps the intermediate ConfigMaps, so they stay in the cluster
after the next change of the intermediate version, and that bump has to
remove them.

Each provider now selects exactly one repository. The bridge and final
ConfigMaps carry `provider.cluster.x-k8s.io/version` with the full
version, including the role suffix, and the core and kubeadm selectors
include it. The operator's finalize step hashes every ConfigMap the
selector matches and rejects more than one. During an upgrade it also
checks the selector of every other installed provider. So the bridge
ConfigMaps carry only the version label, and the v1.10 selectors, which
have no version, never match them. The hook switches the version and the
selector in one guarded patch and selects a bridge by that label alone.
It also narrows an existing bridge selector to that label. A provider
whose first installation never finished takes the fresh-install path.

Kamaji, CAPK, capmox and IPAM keep their existing pins and temporary
v1beta1 compatibility. The autoscaler keeps its explicit v1beta1
selection. An infrastructure provider's v1beta1 `failureReason` no
longer immediately fails a Machine or triggers remediation. The provider
conditions still show the cause.

The vendored operator chart gets six local patches, and `make update`
reapplies them. The core components get a startup probe patch. The
sync-period patch from main stays. I kept the one-minute resync setting
until restart recovery is tested.

CAPI Bats, the bootstrap and platform Helm suites and the rendering
checks pass locally. On envtest against cluster-api-operator v0.30.0,
legacy v1.10 core and kubeadm providers go through v1.13.8 to v1.14.4
with these ConfigMaps. With the old bridge labels core stayed on v1.10.
I have not run a live upgrade, restart or eviction test on this
revision. The [earlier Proxmox
report](https://github.com/cozystack/cozystack/pull/4902#pullrequestreview-5510737333)
covers the v1.13 candidate only.

### Screenshots

<!-- REQUIRED for UI changes: attach screenshots or screen recordings
demonstrating the visual impact of your changes. PRs with UI changes
without screenshots will not be merged. -->

Not a UI change.

### Downstream repositories

<!-- Cozystack is upstream for repositories that are not kept in sync
automatically. Check the trigger map in docs/agents/contributing.md
against the diff. Keep every checkbox. Tick an affected repository only
after linking an existing or newly opened follow-up. Do not claim no
downstream impact when it is unknown. -->

- [ ] No downstream repository is affected by this change
- [x] [cozystack/website](https://github.com/cozystack/website) -
follow-up: cozystack/website#751
- [ ]
[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:

The existing website follow-up needs the management-cluster minimum
updated to v1.33. No tenant API fields, version enums, installer values
or platform variants change.

### Release note

```release-note
feat(cluster-api)!: update Cluster API core and kubeadm bootstrap to v1.14.4, cluster-api-operator to v0.30.0 and Talos bootstrap to v0.6.13. Legacy core and kubeadm installations are upgraded through v1.13.8 before the final manifests are applied. The core and kubeadm bootstrap charts reject management Kubernetes older than v1.33. The upgrade is one-way: Cluster and Machine CRDs use v1beta2 storage and downgrades are not supported. The preferred Cluster API version becomes v1beta2. Clients relying on v1beta1 fields must select that version explicitly. The operator no longer serves operator.cluster.x-k8s.io/v1alpha1. The autoscaler stays on the v1beta1 Cluster API.
```
2026-11-23 11:00:48 +01:00
..
…
…
…