GitHub user jeff-cook created a discussion: How to set connection string
I have an existing secret in the airflow namespace with
- endpoint
- password
- port
- username
When I do the following the
```yaml
extraEnv: |
- name: rds_username
valueFrom:
secretKeyRef:
name: airflow-v3-base-rds-access
key: username
- name: rds_password
valueFrom:
secretKeyRef:
name: airflow-v3-base-rds-access
key: password
- name: rds_address
valueFrom:
secretKeyRef:
name: airflow-v3-base-rds-access
key: endpoint
- name: rds_port
valueFrom:
secretKeyRef:
name: airflow-v3-base-rds-access
key: port
- name: connection
value:
"postgresql://${rds_username}:${rds_password@$(rds_endpoint):${rds_port}/airflow?sslmode=disable"
```
I get
```
env | grep conn
connection=postgresql://${rds_username}:${rds_password@$(rds_endpoint):${rds_port}/airflow?sslmode=disable
```
How can I get airflow to use the existing secret values?
GitHub link: https://github.com/apache/airflow/discussions/56747
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]