Skip to content

Commit a513037

Browse files
committed
infra: #98: add values-api-shared.yaml.gotmpl for reuse across APIs
1 parent 5639fa1 commit a513037

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

deploy/helmfile.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ releases:
5353
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
5454
- git::https://github.com/TourmalineCore/auth-api.git@/Api/ci/values.yaml?ref=master
5555
- values.yaml.gotmpl
56+
- values-api-shared.yaml.gotmpl
5657
- values-auth-api.yaml.gotmpl
5758

5859
- name: inner-circle-accounts-api
@@ -72,6 +73,7 @@ releases:
7273
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
7374
- git::https://github.com/TourmalineCore/accounts-api.git@/Api/ci/values.yaml?ref={{ env "ACCOUNTS_API_BRANCH" | default "master" }}
7475
- values.yaml.gotmpl
76+
- values-api-shared.yaml.gotmpl
7577
- values-accounts-api.yaml.gotmpl
7678

7779
- name: inner-circle-documents-api
@@ -91,6 +93,7 @@ releases:
9193
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
9294
- git::https://github.com/TourmalineCore/inner-circle-documents-api.git@/Api/ci/values.yaml?ref=master
9395
- values.yaml.gotmpl
96+
- values-api-shared.yaml.gotmpl
9497
- values-documents-api.yaml.gotmpl
9598

9699
- name: inner-circle-compensations-api
@@ -110,6 +113,7 @@ releases:
110113
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
111114
- git::https://github.com/TourmalineCore/inner-circle-compensations-api.git@/Api/ci/values.yaml?ref=master
112115
- values.yaml.gotmpl
116+
- values-api-shared.yaml.gotmpl
113117
- values-compensations-api.yaml.gotmpl
114118

115119
- name: inner-circle-employees-api
@@ -128,6 +132,7 @@ releases:
128132
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
129133
- git::https://github.com/TourmalineCore/inner-circle-employees-api.git@/Api/ci/values.yaml?ref=master
130134
- values.yaml.gotmpl
135+
- values-api-shared.yaml.gotmpl
131136
- values-employees-api.yaml.gotmpl
132137

133138
- name: inner-circle-books-api
@@ -147,6 +152,7 @@ releases:
147152
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
148153
- git::https://github.com/TourmalineCore/inner-circle-books-api.git@/Api/ci/values.yaml?ref=master
149154
- values.yaml.gotmpl
155+
- values-api-shared.yaml.gotmpl
150156
- values-books-api.yaml.gotmpl
151157

152158
- name: inner-circle-items-api
@@ -165,6 +171,7 @@ releases:
165171
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
166172
- git::https://github.com/TourmalineCore/inner-circle-items-api.git@/ci/values.yaml?ref=master
167173
- values.yaml.gotmpl
174+
- values-api-shared.yaml.gotmpl
168175
- values-items-api.yaml.gotmpl
169176

170177
- name: inner-circle-time-api
@@ -183,6 +190,7 @@ releases:
183190
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
184191
- git::https://github.com/TourmalineCore/inner-circle-time-api.git@/ci/values.yaml?ref=master
185192
- values.yaml.gotmpl
193+
- values-api-shared.yaml.gotmpl
186194
- values-time-api.yaml.gotmpl
187195

188196
- name: inner-circle-invoices-api
@@ -202,6 +210,7 @@ releases:
202210
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
203211
- git::https://github.com/TourmalineCore/inner-circle-invoices-api.git@/ci/values.yaml?ref=master
204212
- values.yaml.gotmpl
213+
- values-api-shared.yaml.gotmpl
205214
- values-invoices-api.yaml.gotmpl
206215

207216
- name: inner-circle-email-sender
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extraSecretEnvVars:
2+
CorsOptions__AllowedOrigins: "*"

deploy/values-time-api.yaml.gotmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ extraConfigMapEnvVars:
1010
extraSecretEnvVars:
1111
ConnectionStrings__DefaultConnection: "Host=postgresql;port=5432;Database=time-db;Username={{ .Values.postgresUsername }};Password={{ .Values.postgresPassword }}"
1212
AuthenticationOptions__PublicSigningKey: "{{ .Values.publicSigningKey }}"
13-
CorsOptions__AllowedOrigins: "*"

0 commit comments

Comments
 (0)