Merge branch 'main' into 69-integration-with-proxmox-paas-proxmox-bundle

This commit is contained in:
Marian Koreniuk
2024-06-21 23:27:34 +02:00
committed by GitHub
235 changed files with 5053 additions and 5686 deletions

View File

@@ -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
View 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-