mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
snapshot-controller v8.0.1 serves VolumeGroupSnapshots only as v1alpha1 and runs without the CSIVolumeGroupSnapshot gate, so no CSI driver on the platform can take a crash-consistent snapshot of several volumes at once. Velero 1.18 and piraeus-operator both look for groupsnapshot.storage.k8s.io/v1beta2, which v8.7.0 serves and which the upstream chart enables by default. The upstream chart renders its CRDs as ordinary templates instead of shipping them in crds/, and helm-controller takes over existing objects by default. A patch makes the chart render a CRD only when it is absent or already carries this release's ownership, so a distribution that ships its own snapshot CRDs keeps them as they are. keepCRDs is set because an uninstall would otherwise delete every VolumeSnapshot along with the CRDs. Migration 62 hands the CRDs this release installed over to it, read from its helm-controller labels, and checks the HelmRelease rather than those labels to decide whether the release exists, so a retry after a failed create still recreates what the first attempt deleted. The apiserver refuses to drop v1alpha1 from a CRD that lists it in storedVersions, so the empty v1alpha1 group snapshot CRDs are deleted and created again at v1beta2 from copies the image build renders out of the chart. Every HelmRelease waits for the pre-upgrade hook, so linstor renders against the v1beta2 API even when it upgrades first; the version is stamped only once every release-owned v1beta2 group snapshot CRD is Established, which a retry after a timed-out wait must check again. A CRD that still holds v1alpha1 objects is kept, recorded on the cozystack-version ConfigMap, and its warning spells out the manual recovery, since nothing renders either release again once it is gone. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>