Commit Graph
3 Commits
Author SHA1 Message Date
Aleksei Sviridkin a6a82515f7 test(capi-operator): describe why the resync period is still pinned
The header said the resync period bounds how long a stale Ready lasts
after an operator restart. That was the v0.19 restart bug, which the
operator shipped now already fixes; the period is pinned only until
restart recovery on the new operator is measured.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-16 13:52:40 +03:00
Aleksei Sviridkin 1593715abe feat(capi-operator): update cluster-api-operator to v0.30.0
cluster-api-operator v0.19 refuses providers whose metadata declares
contracts other than v1alpha4 or v1beta1. v0.30 supports Cluster API v1.14
and accepts v1beta1 providers alongside a v1beta2 core.

The operator.cluster.x-k8s.io/v1alpha1 API was removed in v0.20.0;
every provider object here already uses v1alpha2.

Keep existing host-address and global feature-gate overrides effective
across the chart upgrade. Explicit per-provider gate maps take priority,
including false gates and empty maps. Provider-only configuration must
remain under spec, and fetch overrides must not rely on duplicate YAML
keys. Profiling settings remain independent of leader election.

Retain the one-minute resync workaround until restart recovery is
measured independently.

Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-11 20:47:50 +03:00
Myasnikov Daniil c2dab12a2e fix(cluster-api): resync capi-operator every minute
A restarted capi-operator v0.19.0 drops the create events for the
provider Deployments it finds already running
(kubernetes-sigs/cluster-api-operator#1031). A provider whose Ready
condition went False while the operator was down therefore keeps it
until that Deployment changes or the informer resyncs, and the first
resync after a restart lands two periods later because the handler
registers after the informer has listed. With the 10m default that is
about 20 minutes, during which capi-providers-core times out on the
CoreProvider and everything depending on it waits; every further
operator restart starts the clock again.

With a one-minute period the same repro recovered 2m02s after the
operator took its lease, against no recovery within 4m26s with the
default on the same cluster. A resync replays the cache and, with
providers in sync, ends in "No changes detected" and an unchanged
condition, so it writes nothing to the API server; the operator logged
about 15 lines a minute and used 2m CPU and 26Mi of memory.

The upstream chart has no value for the flag, so a package patch that
make update reapplies adds one, and a bats test holds the rendered
argument.

Assisted-by: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-10-16 09:37:14 +00:00