wayblink opened a new pull request, #77773:
URL: https://github.com/apache/airflow/pull/77773
## Why
The chart exposes one Airflow image (`images.airflow`), so every image
change rolls every component. A UI-only change — a new API server build for the
React app, for example — therefore restarts the scheduler, the Dag processor
and the triggerer too, interrupting scheduling even though those components
cannot use the new code.
Restarting the whole deployment for a container that only the API server
serves is the kind of coupling the Helm 2.0 refurbishment is removing: *"A
given setting is reachable from one section. A given image is defined in one
place."* This PR takes that step for the four control-plane components.
Prior art: #68784 proposed the same for a subset of components but went
stale before the design was settled; #77123 does the same for Celery worker
sets. This PR follows the settled direction — the image lives in the
component's own `image` block.
## What
- `apiServer.image`, `scheduler.image`, `dagProcessor.image` and
`triggerer.image` accept `repository`, `tag`, `digest` and `pullPolicy`.
- Unset fields fall back to `images.airflow`, then to
`defaultAirflowRepository` / `defaultAirflowTag` / `defaultAirflowDigest`.
- A global digest is **not** inherited once any of repository/tag/digest is
set on the component, because a digest pins one specific image.
- Sidecar containers (`*-log-groomer`) and the `wait-for-migrations` init
container keep using `images.airflow`; only the component's main container is
affected.
- No behaviour change when the new blocks are unset.
```yaml
apiServer:
image:
tag: 3.4.0-ui-fix # UI-only release;
scheduler/dag-processor/triggerer stay on images.airflow
```
## Tests
- `chart/tests/helm_tests/airflow_core/test_component_images.py` covers, for
each of the four components: default falls back to the global image, an
override applies to the main container only (sidecars unchanged), and a global
digest is not inherited.
- `helm template` renders as expected for the default, override and digest
cases (checked locally).
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — DeepSeek Agent
Generated-by: DeepSeek Agent following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
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]