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/airflow-cnpg-cluster.yaml
secretGenerator:
secretgenerator:
- name: airflow-postgres-admin
type: Secret
type: secret
literals:
- username=postgres
- password=NotSoSecret
- password=notsosecret
- name: airflow-postgres-user
type: Secret
literals:
@ -24,7 +24,7 @@ secretGenerator:
- name: airflow-postgres-connection
type: Secret
literals:
- connection=postgresql://airflow:NotSoSecret@airflow-postgres-rw:5432/airflow
- connection=postgresql://airflow:NotSoSecret@$(AIRFLOW_DATABASE_SERVICE_NAME):5432/airflow
vars:
- name: AIRFLOW_DATABASE_SERVICE_NAME