Skip to content

Helm: Point flower extraNetworkPolicies deprecation at the real key - #72052

Merged
Miretpl merged 1 commit into
apache:mainfrom
Eason09053360:fix-flower-networkpolicy-deprecation-note
Sep 2, 2026
Merged

Miretpl merged 1 commit into
apache:mainfrom
Eason09053360:fix-flower-networkpolicy-deprecation-note

Conversation

@Eason09053360

Copy link
Copy Markdown
Contributor

The chart's post-install NOTES.txt tells anyone still on the deprecated
flower.extraNetworkPolicies to migrate to flower.networkPolicy.peers.
That key does not exist. The parameter that actually replaced it is
flower.networkPolicy.ingress.from — what the template reads, and what
values.yaml, values.schema.json and RELEASE_NOTES.rst all document.

It is not just a wrong name in a message. flower.networkPolicy is declared
with additionalProperties: false, so following the warning fails the install
outright:

$ helm template rn chart -f peers.yaml
Error: values don't meet the specifications of the schema(s) in the following chart(s):
airflow:
- at '/flower/networkPolicy': additional properties 'peers' not allowed

while the corrected key renders as intended:

$ helm template rn chart -f ingress-from.yaml \
    --show-only templates/flower/flower-networkpolicy.yaml
...
  ingress:
    - from:
      - namespaceSelector:
          matchLabels:
            release: myrelease
      ports:
        - port: 5555

The warning is gated on .Values.flower.extraNetworkPolicies being set, so it
reaches exactly the users who are mid-migration — and sends them to a key Helm
rejects.

The wrong spelling dates back to #16619, which renamed the parameter to
networkPolicy.ingress.from during review but left the NOTES.txt strings on
the earlier networkPolicy.peers name. That commit introduced the identical
bug in the webserver notice too; that one disappeared with the Airflow 3
webserver removal, leaving only flower's.

On testing

No test is added.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

The deprecation notice has named `flower.networkPolicy.peers` since the
parameter was restructured, but that key never shipped. `flower.networkPolicy`
is declared with `additionalProperties: false`, so anyone who follows the
notice hits a schema validation error and cannot install or upgrade at all.
The warning fires only when the deprecated parameter is set, so it reaches
exactly the users who are trying to migrate and sends them into a dead end.
@Miretpl Miretpl added the backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch label Sep 2, 2026
@Miretpl Miretpl added this to the Airflow Helm Chart 1.23.0 milestone Sep 2, 2026
@Miretpl
Miretpl merged commit bdb9580 into apache:main Sep 2, 2026
106 checks passed
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: chart/v1-2x-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ chart/v1-2x-test PR Link

Miretpl pushed a commit that referenced this pull request Sep 2, 2026
…n at the real key (#72052) (#72436)

The deprecation notice has named `flower.networkPolicy.peers` since the
parameter was restructured, but that key never shipped. `flower.networkPolicy`
is declared with `additionalProperties: false`, so anyone who follows the
notice hits a schema validation error and cannot install or upgrade at all.
The warning fires only when the deprecated parameter is set, so it reaches
exactly the users who are trying to migrate and sends them into a dead end.
(cherry picked from commit bdb9580)

Co-authored-by: Y-C <[email protected]>
Co-authored-by: Eason09053360 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:helm-chart Airflow Helm Chart backport-to-chart/v1-2x-test Automatic backport to chart 1.2x maintenance branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants