-
Notifications
You must be signed in to change notification settings - Fork 169
/
upgrades.yaml
89 lines (88 loc) · 3.64 KB
/
upgrades.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Upgrade commands between versions are configured in this file, and executed in bash (FROM ubuntu:20.04)
#
# Options:
# - pre: will run before applying all
# - post: will run after applying all
# - releases.*.pre will run just in time before syncing that particular release takes place
# - releases.*.post will run immediately after syncing that particular release
#
# NOTE:
# - $(...) can't be used, but backticks can: `...`
# - go templating can be used, but not inside backticked subcommands
# - no comments allowed as commands get transformed into oneliner TODO: move commands to own scripts
#
# Special case for development:
#
# When a version is set to "dev" it will be selected no matter what. This allows to test an upgrade record's effect.
# (don't forget to set it to the next release version before releasing!)
operations:
- version: 0.16.7
pre:
# release knative-init was renamed to knative-operator
- x=`mktemp` && helm -n default get manifest knative-init >$x &&
kubectl annotate -f $x --overwrite "meta.helm.sh/release-name"=knative-operator && rm -rf "$x" || true
# release overprovisioner moved to cluster-overprovisioner in new namespace, so uninstall (also ns)
- helm -n overprovisioner list | grep overprovisioner && helm -n uninstall overprovisioner && kubectl delete ns overprovisioner || true
# release ingress-nginx moved to ingress-nginx-platform
- x=`mktemp` && helm -n ingress get manifest ingress-nginx >$x &&
kubectl annotate -f $x --overwrite "meta.helm.sh/release-name"=ingress-nginx-platform && rm -rf "$x" || true
- version: 0.16.9
pre:
# release kubernetes-external-secrets moved to external-secrets and was upgraded (so we apply crds)
- x=`mktemp` && helm -n vault get manifest kubernetes-external-secrets >$x &&
kubectl annotate -f $x --overwrite "meta.helm.sh/release-name"=external-secrets && rm -rf "$x" &&
kubectl apply -f charts/kubernetes-external-secrets/crds || true
- version: 0.16.10
pre:
# release drone moved to its own namespace, so uninstall
- helm -n team-admin list | grep drone && helm -n team-admin uninstall drone || true
# we need to patch ownership of all podmonitors which are now published by team-ns-* instead of prometheus-*
- |
for id in {{ keys (omit .teamConfig "admin") | join " " }}; do
for p in `kubectl -n "team-$id" get podmonitor | tail -n +2 | awk '{print $1}'`; do
kubectl -n "team-$id" annotate podmonitor/$p --overwrite "meta.helm.sh/release-name"=team-ns-$id
done
done
- version: 0.18.0
post:
# convert secrets to new format and apply
- vendor/kes-to-eso/migrate-post.sh || true
- version: 0.18.1
pre:
- upgrades/pre/upgrade-0-18-1.sh || true
- version: 0.20.0
pre:
- upgrades/pre/upgrade-0-20-0.sh || true
- version: 0.22.0
pre:
- upgrades/pre/upgrade-0-22-0.sh || true
- version: 0.23.0
pre:
- upgrades/pre/upgrade-0-23-0.sh || true
- version: 0.25.0
pre:
- upgrades/pre/upgrade-0-25-0.sh || true
- version: 0.26.0
pre:
- upgrades/pre/upgrade-0-26.0.sh || true
- version: 0.27.0
pre:
- upgrades/pre/upgrade-0-27.0.sh || true
- version: 1.2.0
pre:
- upgrades/pre/upgrade-1-2.0.sh || true
- version: 2.7.0
pre:
- upgrades/pre/upgrade-2-7-0.sh || true
- version: 2.8.0
pre:
- upgrades/pre/upgrade-2-8-0.sh || true
- version: 2.10.0
pre:
- upgrades/pre/upgrade-2-10-0.sh || true
- version: 2.12.0
pre:
- upgrades/pre/upgrade-2-12-0.sh || true
- version: 3.0.0
pre:
- upgrades/pre/upgrade-3-0-0.sh || true