You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/12 08:48:57 UTC
[GitHub] [airflow] yc0 opened a new issue, #26340: metasecretName is not working anymore
yc0 opened a new issue, #26340:
URL: https://github.com/apache/airflow/issues/26340
### Official Helm Chart version
1.6.0 (latest released)
### Apache Airflow version
2.3.4
### Kubernetes Version
1.20.12
### Helm Chart configuration
postgresql:
enabled: false
data:
metadataSecretName: mydatabase
pgbouncer:
enabled: false
### Docker Image customisations
_No response_
### What happened
as the document mentioned, when you try to access an external database, you should create your connection information in Secret and will use it as metadataSecretName in values.yaml
However, metadataSecretName is not working. It still keeps using <app-name>-airflow-metdata Secret.
### What you think should happen instead
_No response_
### How to reproduce
1. create your own metadata info.
```
kind: Secret
apiVersion: v1
metadata:
name: mydatabase
type: Opaque
data:
connection: <xxx>
```
2. upgrade the values.yaml with following configurations
postgresql:
enabled: false
data:
metadataSecretName: mydatabase
pgbouncer:
enabled: false
3. when you run the jobs in Airflow, you will see the error msg from pods
"secret "airflow-airflow-metadata" not found"
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] yc0 closed issue #26340: metasecretName is not working anymore
Posted by GitBox <gi...@apache.org>.
yc0 closed issue #26340: metasecretName is not working anymore
URL: https://github.com/apache/airflow/issues/26340
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] yc0 commented on issue #26340: metasecretName is not working anymore
Posted by GitBox <gi...@apache.org>.
yc0 commented on issue #26340:
URL: https://github.com/apache/airflow/issues/26340#issuecomment-1246196143
the issue came from podTemplate configuration.
when configuring the podTemplate, you have to modify 3 volumes for using the external database along with `metadataSecretName`.
```
- name: AIRFLOW__CORE__SQL_ALCHEMY_CONN
valueFrom:
secretKeyRef:
name: mydatabase
key: connection
- name: AIRFLOW__DATABASE__SQL_ALCHEMY_CONN
valueFrom:
secretKeyRef:
name: mydatabase
key: connection
- name: AIRFLOW_CONN_AIRFLOW_DB
valueFrom:
secretKeyRef:
name: mydatabase
key: connection
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #26340: metasecretName is not working anymore
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #26340:
URL: https://github.com/apache/airflow/issues/26340#issuecomment-1243414536
Thanks for opening your first issue here! Be sure to follow the issue template!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org