AdeshDeshmukh opened a new issue, #77643:
URL: https://github.com/apache/airflow/issues/77643
### Under which category would you file this issue?
Helm chart
### Apache Airflow version
3.2.2 (default image rendered by Helm chart 1.22.0)
### What happened and how to reproduce it?
When KEDA is enabled only for a named Celery worker set and that set is
configured to bypass PgBouncer, the chart renders a worker that references a
missing key in the metadata Secret.
1. Save the YAML from the **Helm Chart configuration** field as
`values.yaml`.
2. Render the chart:
```sh
helm template probe airflow \
--repo https://airflow.apache.org \
--version 1.22.0 \
-f values.yaml > rendered.yaml
```
3. In `rendered.yaml`, find the `probe-worker-fast` StatefulSet. Its
`worker` container has this environment variable:
```yaml
- name: KEDA_DB_CONN
valueFrom:
secretKeyRef:
name: probe-metadata
key: kedaConnection
```
4. Find the `probe-metadata` Secret in the same file. Its `data` contains
only `connection`. The required `kedaConnection` key is missing, so Kubernetes
would be unable to start the worker container with this configuration.
### What you think should happen instead?
The chart should include `kedaConnection` in the generated metadata Secret
when a named worker set needs it, even if KEDA is disabled for the default
worker set.
### Operating System
macOS (Apple Silicon)
### Deployment
Official Apache Airflow Helm Chart
### Apache Airflow Provider(s)
_No response_
### Versions of Apache Airflow Providers
_No response_
### Official Helm Chart version
1.22.0 (latest released)
### Kubernetes Version
No cluster used. Reproduced locally with helm template (Helm 3.19.0).
### Helm Chart configuration
```yaml
executor: CeleryExecutor
pgbouncer:
enabled: true
workers:
celery:
keda:
enabled: false
sets:
- name: fast
keda:
enabled: true
usePgbouncer: false
```
### Docker Image customizations
None. The chart rendered its default Airflow image.
### Anything else?
The same mismatch reproduced on `main` at
`7d9f803ea4b23991b4ee471ac735b8156b2d44ce`. The worker template uses the named
set's KEDA settings, while the metadata Secret template checks the top-level
Celery KEDA settings when deciding whether to include `kedaConnection`.
### Are you willing to submit PR?
- [x] 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]