Skip to content

Commit

Permalink
Use generated config/credentials on dev
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickEvers committed Apr 3, 2024
1 parent 793d7bb commit aaa462c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ data:
{% if CAL_IS_MIGRATION is defined %}
IS_MIGRATION: "{{ CAL_IS_MIGRATION }}"
{% endif %}
{% if WITH_BRANCH_POSTGRES_DB_MANAGEMENT is defined and WITH_BRANCH_POSTGRES_DB_MANAGEMENT|bool %}
DB_HOST: {{ POSTGRES_HOST }}
DB_SSL: true
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,21 @@ spec:
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: calendar-secret
- configMapRef:
name: calendar-configmap
{% if WITH_BRANCH_POSTGRES_DB_MANAGEMENT is defined and WITH_BRANCH_POSTGRES_DB_MANAGEMENT|bool %}
- secretRef:
name: calendar-secret
name: pg-calendar-secret
env:
- name: DB_PASSWORD
value: "${DB_USER_PASSWORD}"
- name: DB_USERNAME
value: "${DB_USER}"
- name: DB_DATABASE
value: "${DB_NAME}"
{% endif %}
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@ spec:
- name: calendar-db-init
image: schulcloud/infra-tools:latest
envFrom:
- secretRef:
name: calendar-secret
- configMapRef:
name: calendar-configmap
{% if WITH_BRANCH_POSTGRES_DB_MANAGEMENT is defined and WITH_BRANCH_POSTGRES_DB_MANAGEMENT|bool %}
- secretRef:
name: calendar-secret
name: pg-calendar-secret
env:
- name: DB_PASSWORD
value: "${DB_USER_PASSWORD}"
- name: DB_USERNAME
value: "${DB_USER}"
- name: DB_DATABASE
value: "${DB_NAME}"
{% endif %}
volumeMounts:
- name: script
mountPath: /update.sh
Expand Down

0 comments on commit aaa462c

Please sign in to comment.