mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
[cluster-api] Add missing migration for capi-providers
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
10
scripts/migrations/14
Executable file
10
scripts/migrations/14
Executable file
@@ -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-
|
||||
Reference in New Issue
Block a user