mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
chore(platform): drop dashboard.cozystack.io CRDs via migration 40
Existing clusters still have the legacy dashboard.cozystack.io CRDs installed even after the dashboard controller has been removed. Add a platform migration that deletes them and bump targetVersion to 41. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
2 files changed
+43
-1
No files matched your search
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
# Migration 40 --> 41
|
||||
# Remove obsolete dashboard.cozystack.io CRDs left over from the dashboard
|
||||
# controller, which is no longer part of Cozystack.
|
||||
#
|
||||
# The dashboard controller used to project ApplicationDefinitions into a set
|
||||
# of dashboard.cozystack.io CRs (Sidebar, Factory, Navigation, Breadcrumb,
|
||||
# CustomFormsOverride, CustomFormsPrefill, CustomColumnsOverride,
|
||||
# MarketplacePanel, TableUriMapping, CFOMapping, BreadcrumbInside) consumed
|
||||
# by the legacy UI. cozystack-ui now reads ApplicationDefinitions directly,
|
||||
# so both the controller and the CRDs are dead. The chart no longer ships
|
||||
# these CRDs, but existing clusters still have them installed — delete them
|
||||
# explicitly here so they do not stay around as orphans.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
CRDS="
|
||||
breadcrumbs.dashboard.cozystack.io
|
||||
breadcrumbsinside.dashboard.cozystack.io
|
||||
cfomappings.dashboard.cozystack.io
|
||||
customcolumnsoverrides.dashboard.cozystack.io
|
||||
customformsoverrides.dashboard.cozystack.io
|
||||
customformsprefills.dashboard.cozystack.io
|
||||
factories.dashboard.cozystack.io
|
||||
marketplacepanels.dashboard.cozystack.io
|
||||
navigations.dashboard.cozystack.io
|
||||
sidebars.dashboard.cozystack.io
|
||||
tableurimappings.dashboard.cozystack.io
|
||||
"
|
||||
|
||||
for CRD in $CRDS; do
|
||||
if kubectl get crd "$CRD" >/dev/null 2>&1; then
|
||||
echo "Deleting CRD $CRD"
|
||||
kubectl delete crd "$CRD" --ignore-not-found=true --wait=false
|
||||
else
|
||||
echo "CRD $CRD not found, skipping"
|
||||
fi
|
||||
done
|
||||
|
||||
# Stamp version
|
||||
kubectl create configmap -n cozy-system cozystack-version \
|
||||
--from-literal=version=41 --dry-run=client -o yaml | kubectl apply -f-
|
||||
@@ -6,7 +6,7 @@ sourceRef:
|
||||
migrations:
|
||||
enabled: false
|
||||
image: ghcr.io/cozystack/cozystack/platform-migrations:v1.4.0-rc.2@sha256:17390197a9b11d76a8dd1b24c6d1512adb7d3226b28b5bcba8551b14b1ec4be0
|
||||
targetVersion: 40
|
||||
targetVersion: 41
|
||||
# Bundle deployment configuration
|
||||
bundles:
|
||||
system:
|
||||
|
||||
Reference in new issue
Block a user