mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 17:41:21 +00:00
Merge branch 'main' into 69-integration-with-proxmox-paas-proxmox-bundle
This commit is contained in:
@@ -3,7 +3,7 @@ set -o pipefail
|
||||
set -e
|
||||
|
||||
BUNDLE=$(set -x; kubectl get configmap -n cozy-system cozystack -o 'go-template={{index .data "bundle-name"}}')
|
||||
VERSION=3
|
||||
VERSION=4
|
||||
|
||||
run_migrations() {
|
||||
if ! kubectl get configmap -n cozy-system cozystack-version; then
|
||||
|
||||
12
scripts/migrations/3
Executable file
12
scripts/migrations/3
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Migration 3 --> 4
|
||||
|
||||
# Fix kubeovn crds
|
||||
kubeovn_crds=$(kubectl get crd -o name | grep '\.kubeovn\.io$')
|
||||
if [ -n "$kubeovn_crds" ]; then
|
||||
kubectl annotate $kubeovn_crds meta.helm.sh/release-namespace=cozy-kubeovn meta.helm.sh/release-name=kubeovn
|
||||
kubectl label $kubeovn_crds app.kubernetes.io/managed-by=Helm
|
||||
fi
|
||||
|
||||
# Write version to cozystack-version config
|
||||
kubectl create configmap -n cozy-system cozystack-version --from-literal=version=4 --dry-run=client -o yaml | kubectl apply -f-
|
||||
Reference in New Issue
Block a user