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

37 lines
765 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@airflow-postgres-rw:5432/airflow
vars:
- name: AIRFLOW_DATABASE_SERVICE_NAME
objref:
name: airflow-postgres
kind: Cluster
apiVersion: postgresql.cnpg.io/v1
fieldref:
fieldpath: metadata.name