Skip to content

Commit

Permalink
Use different s3 buckets for each env
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Oct 30, 2023
1 parent fa9e04e commit 0bac8de
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion infra/kube/helm/dev.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ingress.hosts[0].host: qualif.basegun.interieur.gouv.fr
backend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-backend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
backend.config.s3_bucket_name: basegun-s3-dev
3 changes: 2 additions & 1 deletion infra/kube/helm/prod.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ingress.hosts[0].host: basegun.interieur.gouv.fr
backend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-backend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
backend.config.s3_bucket_name: basegun-s3
3 changes: 2 additions & 1 deletion infra/kube/helm/staging.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ingress.hosts[0].host: preprod.basegun.interieur.gouv.fr
backend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-backend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
frontend.image.repository: registry.dso.interieur.rie.gouv.fr/mi-basegun/basegun-frontend
backend.config.s3_bucket_name: basegun-s3-staging
2 changes: 1 addition & 1 deletion infra/kube/helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data:
WORKSPACE: {{ .Values.backend.config.workspace }}
PATH_LOGS: /tmp/log/basegun/
S3_URL_ENDPOINT: https://basegun-8b03-s3.s3obj.ecs.objstore.r1.pi2.minint.fr
S3_BUCKET_NAME: basegun-s3
S3_BUCKET_NAME: {{ .Values.backend.config.s3_bucket_name }}
---
apiVersion: v1
kind: ConfigMap
Expand Down
1 change: 1 addition & 0 deletions infra/kube/helm/values-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ backend:
targetCPUUtilizationPercentage: 80
config:
workspace: preprod
s3_bucket_name: basegun-s3
secret:
create: false
sops: true
Expand Down

0 comments on commit 0bac8de

Please sign in to comment.