Commit 5dc6aba
committed
[BACKPORT 2.6][platform] Restart pod if the configuration changes
- This adds checksum of the configs.yaml file to pod metadata as
annotation. This causes it to change if there are any changes in the
configuration, and results in a restart of the pod.
https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
- Moving the global-config outside from configs.yaml, as it has a
random string in it, which causes a restart everytime as the
checksum keeps changing.
Test plan:
- Deployed platform chart in a Kubernetes cluster without this change.
- Upgraded the Helm release with this change (the pod restarts as
expected).
- Add --set helm.timeout=1000 during the helm upgrade (the pod
restarts as expected)
- Did another upgrade with same command as above (the pod does not
restart as the configuration is the same).
Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>1 parent 92a7e35 commit 5dc6aba
File tree
3 files changed
+19
-15
lines changed- stable/yugaware/templates
3 files changed
+19
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 2 | | |
18 | 3 | | |
19 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments