Skip to content

Commit

Permalink
fix: use sync wave
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Oct 20, 2023
1 parent c0d8197 commit d585768
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions infra/api_chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Common annotations
{{- range $k, $v := .Values.serviceTree }}
"atomi.cloud/{{ $k }}": "{{ $v }}"
{{- end }}
{{- range $k, $v := .Values.annotations }}
"{{ $k }}": "{{ $v }}"
{{- end }}
{{- end }}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions infra/api_chart/values.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ appSettings:
App:
Mode: Server

annotations: {}

envFromSecret: sulfone-zinc

configMountPath: /app/App/Config
Expand Down
3 changes: 3 additions & 0 deletions infra/root_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Root Chart to a single Service
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| api.affinity | object | `{}` | |
| api.annotations."argocd.argoproj.io/sync-wave" | string | `"3"` | |
| api.appSettings.App.Mode | string | `"Server"` | |
| api.autoscaling | object | `{}` | |
| api.configMountPath | string | `"/app/Config"` | |
Expand Down Expand Up @@ -64,6 +65,7 @@ Root Chart to a single Service
| api.serviceTree.module | string | `"api"` | |
| api.tolerations | list | `[]` | |
| api.topologySpreadConstraints | object | `{}` | |
| bromine.annotations."argocd.argoproj.io/sync-wave" | string | `"1"` | |
| bromine.enable | bool | `false` | |
| bromine.rootSecret | object | `{"ref":"SULFONE_ZINC"}` | Secret of Secrets reference |
| bromine.rootSecret.ref | string | `"SULFONE_ZINC"` | DOPPLER Token Reference |
Expand All @@ -74,6 +76,7 @@ Root Chart to a single Service
| maindb.nameOverride | string | `"main-database"` | |
| maindb.primary.persistence.enabled | bool | `false` | |
| migration.affinity | object | `{}` | |
| migration.annotations."argocd.argoproj.io/sync-wave" | string | `"2"` | |
| migration.appSettings.App.Mode | string | `"Migration"` | |
| migration.aspNetEnv | string | `"Development"` | |
| migration.backoffLimit | int | `4` | |
Expand Down
7 changes: 6 additions & 1 deletion infra/root_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ serviceTree: &serviceTree
layer: "2"

bromine:
annotations:
argocd.argoproj.io/sync-wave: "1"
enable: false
# -- Store name to create
storeName: sulfone-zinc
Expand All @@ -15,7 +17,8 @@ bromine:

api:
enabled: true

annotations:
argocd.argoproj.io/sync-wave: "3"
nameOverride: "api"
fullnameOverride: ""

Expand Down Expand Up @@ -99,6 +102,8 @@ api:
topologySpreadConstraints: {}

migration:
annotations:
argocd.argoproj.io/sync-wave: "2"
enabled: false
nameOverride: "migration"
fullnameOverride: ""
Expand Down

0 comments on commit d585768

Please sign in to comment.