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