|
6 | 6 | # provider's SQL operator, Airflow also reports dataset-level lineage, which shows up in Marquez next |
7 | 7 | # to the query lineage emitted by Trino itself. |
8 | 8 | # |
9 | | -# NOTE: this file is intentionally *not* wrapped in a Jinja `{% raw %}` block (unlike other airflow |
10 | | -# stacks) so that `{{ NAMESPACE }}` / `{{ ...Password }}` are templated. Keep the DAG code free of |
11 | | -# `{{ }}` sequences. |
| 9 | +# NOTE: this file is intentionally NOT wrapped in a Jinja raw block (unlike other airflow stacks) |
| 10 | +# so that the NAMESPACE / password placeholders are templated by Tera. Keep this whole file - even |
| 11 | +# comments - free of literal Tera tag sequences (double curly braces and percent-brace tags): Tera |
| 12 | +# processes the raw bytes before YAML parsing, so a tag token in a comment is still interpreted. |
| 13 | +# (An earlier version of this comment quoted a raw-block tag here, which opened an unclosed raw |
| 14 | +# block and broke rendering with "expected tag" at EOF.) |
12 | 15 | --- |
13 | 16 | apiVersion: airflow.stackable.tech/v1alpha2 |
14 | 17 | kind: AirflowCluster |
|
20 | 23 | pullPolicy: IfNotPresent |
21 | 24 | clusterConfig: |
22 | 25 | loadExamples: false |
23 | | - credentialsSecret: airflow-credentials |
| 26 | + credentialsSecretName: airflow-credentials |
| 27 | + # The airflow-operator 'dev' schema moved the metadata DB connection out of the credentials |
| 28 | + # Secret into its own block. Points at the postgresql-airflow chart deployed by this stack. |
| 29 | + metadataDatabase: |
| 30 | + postgresql: |
| 31 | + host: postgresql-airflow |
| 32 | + database: airflow |
| 33 | + credentialsSecretName: airflow-postgresql-credentials |
24 | 34 | volumes: |
25 | 35 | - name: airflow-dags |
26 | 36 | configMap: |
@@ -164,5 +174,15 @@ stringData: |
164 | 174 | adminUser.lastname: Admin |
165 | 175 | adminUser.email: airflow@airflow.com |
166 | 176 | adminUser.password: "{{ airflowAdminPassword }}" |
167 | | - connections.secretKey: "{{ airflowSecretKey }}" |
168 | | - connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:airflow@postgresql-airflow/airflow |
| 177 | +--- |
| 178 | +# Credentials for the Airflow metadata database (the postgresql-airflow chart in this stack). |
| 179 | +# The operator reads the `username`/`password` keys and builds the SQLAlchemy URL from the |
| 180 | +# clusterConfig.metadataDatabase block above. |
| 181 | +apiVersion: v1 |
| 182 | +kind: Secret |
| 183 | +metadata: |
| 184 | + name: airflow-postgresql-credentials |
| 185 | +type: Opaque |
| 186 | +stringData: |
| 187 | + username: airflow |
| 188 | + password: airflow |
0 commit comments