mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
New schema version 10
BREAKING: all kuberneteses will be upgraded to chart version 0.15.1
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=9
|
||||
VERSION=10
|
||||
|
||||
run_migrations() {
|
||||
if ! kubectl get configmap -n cozy-system cozystack-version; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Migration 7 --> 9
|
||||
# Migration 8 --> 9
|
||||
|
||||
if kubectl get clusterrolebinding kubeapps-admin-group; then
|
||||
kubectl delete clusterrolebinding kubeapps-admin-group
|
||||
|
||||
8
scripts/migrations/9
Executable file
8
scripts/migrations/9
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Migration 9 --> 10
|
||||
|
||||
# Upgrade kubernetes.apps to new chart version
|
||||
kubectl get kuberneteses.apps.cozystack.io -A -o yaml | sed -r -e 's/^ appVersion: [0-9.]+$/ appVersion: 0.15.1/' | kubectl apply -f-
|
||||
|
||||
# Write version to cozystack-version config
|
||||
kubectl create configmap -n cozy-system cozystack-version --from-literal=version=10 --dry-run=client -o yaml | kubectl apply -f-
|
||||
Reference in New Issue
Block a user