Files
cozystack/packages
Aleksei Sviridkin 08c22a2f99 fix(linstor): gate group snapshots on the v1 group snapshot API
The CSIVolumeGroupSnapshot gate for csi-snapshotter and the linstor
VolumeGroupSnapshotClass were rendered only when
groupsnapshot.storage.k8s.io/v1beta2 is served. The components that
act on group snapshots read v1: csi-snapshotter v8.7.0 builds its
content and class informers on v1 and checks for those v1 kinds at
startup, snapshot-controller v8.7.0 watches all three kinds at v1, and
piraeus-operator v2.12.1 probes v1 VolumeGroupSnapshot. The chart
serves v1, v1beta1 and v1beta2 today, so the outcome is the same, but
once upstream stops serving v1beta2 the gate would switch group
snapshots off while every consumer could still use them. A
distribution that serves v1beta2 without v1 got the gate on, and
csi-snapshotter then disabled the feature at startup anyway.

The class moves to v1 with the gate. Helm matches release objects by
group and kind, so the existing class is updated in place. Velero
1.18 still reads the class at v1beta2, which the chart serves.

The comment claiming csi-snapshotter stalls with the gate on and the
API missing is replaced: v8.7.0 logs a warning and runs without group
snapshots. What the render-time gate buys is a csi-controller rollout
on the first linstor upgrade that sees the API, because csi-snapshotter
looks for it only when it starts.

Tested with helm unittest on packages/system/linstor; a cluster
serving the three kinds at v1beta2 only now renders the gate off and no
class.

Fixes: d89bce58e8 ("feat(linstor): enable VolumeGroupSnapshots for linstor-csi")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-11-25 12:22:57 +03:00
..