fix(database): using variable instead of hardcoded value

This commit is contained in:
Philippe Caseiro 2023-04-24 11:53:28 +02:00
parent 8c6662e24f
commit 79ebc425c5
1 changed files with 4 additions and 4 deletions

View File

@ -10,12 +10,12 @@ configurations:
resources: resources:
- ./resources/airflow-cnpg-cluster.yaml - ./resources/airflow-cnpg-cluster.yaml
secretGenerator: secretgenerator:
- name: airflow-postgres-admin - name: airflow-postgres-admin
type: Secret type: secret
literals: literals:
- username=postgres - username=postgres
- password=NotSoSecret - password=notsosecret
- name: airflow-postgres-user - name: airflow-postgres-user
type: Secret type: Secret
literals: literals:
@ -24,7 +24,7 @@ secretGenerator:
- name: airflow-postgres-connection - name: airflow-postgres-connection
type: Secret type: Secret
literals: literals:
- connection=postgresql://airflow:NotSoSecret@airflow-postgres-rw:5432/airflow - connection=postgresql://airflow:NotSoSecret@$(AIRFLOW_DATABASE_SERVICE_NAME):5432/airflow
vars: vars:
- name: AIRFLOW_DATABASE_SERVICE_NAME - name: AIRFLOW_DATABASE_SERVICE_NAME