Skip to content

Commit d585768

Browse files
committed
fix: use sync wave
1 parent c0d8197 commit d585768

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

infra/api_chart/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Common annotations
6161
{{- range $k, $v := .Values.serviceTree }}
6262
"atomi.cloud/{{ $k }}": "{{ $v }}"
6363
{{- end }}
64+
{{- range $k, $v := .Values.annotations }}
65+
"{{ $k }}": "{{ $v }}"
66+
{{- end }}
6467
{{- end }}
6568

6669
{{/*

infra/api_chart/values.example.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ appSettings:
1212
App:
1313
Mode: Server
1414

15+
annotations: {}
16+
1517
envFromSecret: sulfone-zinc
1618

1719
configMountPath: /app/App/Config

infra/root_chart/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Root Chart to a single Service
1818
| Key | Type | Default | Description |
1919
|-----|------|---------|-------------|
2020
| api.affinity | object | `{}` | |
21+
| api.annotations."argocd.argoproj.io/sync-wave" | string | `"3"` | |
2122
| api.appSettings.App.Mode | string | `"Server"` | |
2223
| api.autoscaling | object | `{}` | |
2324
| api.configMountPath | string | `"/app/Config"` | |
@@ -64,6 +65,7 @@ Root Chart to a single Service
6465
| api.serviceTree.module | string | `"api"` | |
6566
| api.tolerations | list | `[]` | |
6667
| api.topologySpreadConstraints | object | `{}` | |
68+
| bromine.annotations."argocd.argoproj.io/sync-wave" | string | `"1"` | |
6769
| bromine.enable | bool | `false` | |
6870
| bromine.rootSecret | object | `{"ref":"SULFONE_ZINC"}` | Secret of Secrets reference |
6971
| bromine.rootSecret.ref | string | `"SULFONE_ZINC"` | DOPPLER Token Reference |
@@ -74,6 +76,7 @@ Root Chart to a single Service
7476
| maindb.nameOverride | string | `"main-database"` | |
7577
| maindb.primary.persistence.enabled | bool | `false` | |
7678
| migration.affinity | object | `{}` | |
79+
| migration.annotations."argocd.argoproj.io/sync-wave" | string | `"2"` | |
7780
| migration.appSettings.App.Mode | string | `"Migration"` | |
7881
| migration.aspNetEnv | string | `"Development"` | |
7982
| migration.backoffLimit | int | `4` | |

infra/root_chart/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ serviceTree: &serviceTree
55
layer: "2"
66

77
bromine:
8+
annotations:
9+
argocd.argoproj.io/sync-wave: "1"
810
enable: false
911
# -- Store name to create
1012
storeName: sulfone-zinc
@@ -15,7 +17,8 @@ bromine:
1517

1618
api:
1719
enabled: true
18-
20+
annotations:
21+
argocd.argoproj.io/sync-wave: "3"
1922
nameOverride: "api"
2023
fullnameOverride: ""
2124

@@ -99,6 +102,8 @@ api:
99102
topologySpreadConstraints: {}
100103

101104
migration:
105+
annotations:
106+
argocd.argoproj.io/sync-wave: "2"
102107
enabled: false
103108
nameOverride: "migration"
104109
fullnameOverride: ""

0 commit comments

Comments
 (0)