mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-11 15:06:28 +09:00
[platform] fix migration for removing fluxcd-operator
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
1 file changed
+9
@@ -3,7 +3,16 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
for crd in $(kubectl get crd -o name | grep 'fluxcd.io$'); do
|
||||||
|
kubectl annotate $crd fluxcd.controlplane.io/prune=disabled
|
||||||
|
done
|
||||||
|
|
||||||
kubectl delete hr -n cozy-fluxcd fluxcd --ignore-not-found
|
kubectl delete hr -n cozy-fluxcd fluxcd --ignore-not-found
|
||||||
|
kubectl delete hr -n cozy-fluxcd fluxcd-operator --ignore-not-found
|
||||||
|
|
||||||
|
for crd in $(kubectl get crd -o name | grep 'fluxcd.io$'); do
|
||||||
|
kubectl label $crd fluxcd.controlplane.io/name- fluxcd.controlplane.io/namespace-
|
||||||
|
done
|
||||||
|
|
||||||
# Stamp version
|
# Stamp version
|
||||||
kubectl create configmap -n cozy-system cozystack-version \
|
kubectl create configmap -n cozy-system cozystack-version \
|
||||||
|
|||||||
Reference in new issue
Block a user