airflow-kustom/base/components/airflow-cnpg-database/kustomization.yaml

37 lines
778 B
YAML

apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
generatorOptions:
disableNameSuffixHash: true
configurations:
- ./configurations/cnpg-cluster.yaml
resources:
- ./resources/airflow-cnpg-cluster.yaml
secretgenerator:
- name: airflow-postgres-admin
type: secret
literals:
- username=postgres
- password=notsosecret
- name: airflow-postgres-user
type: Secret
literals:
- username=airflow
- password=NotSoSecret
- name: airflow-postgres-connection
type: Secret
literals:
- connection=postgresql://airflow:NotSoSecret@${DB_SERVICE_HOST}:${DB_SERVICE_PORT}/airflow
vars:
- name: AIRFLOW_DATABASE_SERVICE_NAME
objref:
name: airflow-postgres
kind: Cluster
apiVersion: postgresql.cnpg.io/v1
fieldref:
fieldpath: metadata.name