From c2e8fba483ef06d332cac9c85fb051c636fdb894 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 16 Jun 2025 22:18:13 +0200 Subject: [PATCH] [cluster-api] Add missing migration for capi-providers Signed-off-by: Andrei Kvapil --- scripts/migrations/14 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/migrations/14 diff --git a/scripts/migrations/14 b/scripts/migrations/14 new file mode 100755 index 00000000..95735bb8 --- /dev/null +++ b/scripts/migrations/14 @@ -0,0 +1,10 @@ +#!/bin/sh +# Migration 14 --> 15 + +# Delete the `capi-providers` HelmRelease in the `cozy-cluster-api` namespace if present +if kubectl get hr -n cozy-cluster-api capi-providers >/dev/null 2>&1; then + kubectl delete hr -n cozy-cluster-api capi-providers +fi + +# Write version to cozystack-version config +kubectl create configmap -n cozy-system cozystack-version --from-literal=version=15 --dry-run=client -o yaml | kubectl apply -f-