You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc06090
Browse filesBrowse the repository at this point in the historyBrowse files
fix(platform): give the full recovery from a kept group snapshot CRD
A group snapshot CRD that migration 61 keeps carries no Helm ownership,
so the chart leaves it out of the release: snapshot-controller upgrades
with that API still at v1alpha1 rather than failing. Once the CRD is
cleaned up nothing renders either release again, so the warning now
lists every step: force a snapshot-controller upgrade to create the CRD
at v1beta2, restart the controller so it sets up its group snapshot
watches, then force a linstor upgrade.
This also corrects 198d8ac, which said Helm refuses to upgrade over
CRDs without ownership metadata. helm-controller enables takeover by
default; what keeps foreign CRDs out of the release is the chart patch
in 0d2e0ca, and migration 61's adoption keeps the release's own CRDs
in it.
Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <[email protected]>
RECOVERY="once its objects are deleted, delete the CRD, run 'flux reconcile helmrelease --namespace $RELEASE_NS$RELEASE_NAME --force' so the chart creates it at v1beta2, 'kubectl rollout restart --namespace $RELEASE_NS deployment/snapshot-controller', then 'flux reconcile helmrelease --namespace cozy-linstor linstor --force' to enable group snapshots"
70
+
68
71
LEFTOVERS=""
69
72
CREATE=""
70
73
@@ -132,7 +135,7 @@ for plural in $GROUP_SNAPSHOT_CRDS; do
132
135
# while v1alpha1 is still a stored version, so such a CRD is left to an
133
136
# operator rather than adopted into an upgrade that cannot apply.
echo"WARN: CRD $crd serves v1beta2 but still stores v1alpha1; the snapshot-controller upgrade fails until its objects are migrated and storedVersions trimmed, and the linstor HelmRelease needs a forced upgrade after that to enable group snapshots">&2
138
+
echo"WARN: CRD $crd serves v1beta2 but still stores v1alpha1; it stays out of $RELEASE_NS/$RELEASE_NAMEand group snapshots stay off: $RECOVERY">&2
echo"WARN: CRD $crd still holds $count v1alpha1 object(s); the snapshot-controller upgrade fails until they and then the empty CRD are deleted (the CRD keeps v1alpha1 in storedVersions), after which snapshot-controller recreates it at v1beta2 and the linstor HelmRelease needs a forced upgrade to enable group snapshots">&2
147
+
echo"WARN: CRD $crd still holds $count v1alpha1 object(s); it stays out of $RELEASE_NS/$RELEASE_NAMEand group snapshots stay off: $RECOVERY">&2
0 commit comments