Prepare release v0.5.0 (#126)

* Prepare release v0.5.0

* fix mariadb
This commit is contained in:
Andrei Kvapil
2024-05-10 12:52:57 +02:00
committed by GitHub
parent a9c42c8ef0
commit c0685f4318
14 changed files with 39 additions and 26 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=2
VERSION=3
run_migrations() {
if ! kubectl get configmap -n cozy-system cozystack-version; then

14
scripts/migrations/2 Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Migration 2 --> 3
kubectl apply -f packages/system/mariadb-operator/charts/mariadb-operator/crds/crds.yaml --server-side --force-conflicts
# Fix mariadb-operator crds
mariadb_crds=$(kubectl get crd -o name | grep '\.k8s\.mariadb\.com$')
if [ -n "$mariadb_crds" ]; then
kubectl annotate $mariadb_crds meta.helm.sh/release-namespace=cozy-mariadb-operator meta.helm.sh/release-name=mariadb-operator
kubectl label $mariadb_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=3 --dry-run=client -o yaml | kubectl apply -f-