Skip to content

Fix chart NOTES.txt showing deprecation warnings only without secret key#62722

Merged
jedcunningham merged 1 commit intoapache:mainfrom
astronomer:fix_chart_notes
Mar 2, 2026
Merged

Fix chart NOTES.txt showing deprecation warnings only without secret key#62722
jedcunningham merged 1 commit intoapache:mainfrom
astronomer:fix_chart_notes

Conversation

@jedcunningham
Copy link
Member

The webserver/API secret key conditional was incorrectly wrapping all deprecation warnings (securityContext, workers.*, webserver.defaultUser), causing them to only display when no secret key was configured. Moved the conditional to only wrap the secret key warning where it belongs.

Verification

Deprecated value in use + secret key configured:

  # Before: warning silently suppressed
  helm install --dry-run airflow ./chart \
    --set webserverSecretKey=mysecretkey \
    --set securityContext.runAsUser=999 \
    | grep "DEPRECATION"
  # (no output)
  # After: warning correctly shown
   DEPRECATION WARNING:
      `securityContext` has been renamed to `securityContexts`, to be enabled
      on container and pod level. Please change your values as support for the
      old name will be dropped in a future release.

Secret key warning still appears when no key is set (no regression):

  helm install --dry-run airflow ./chart | grep -A1 "WARNING: You should"
  #  WARNING: You should set a static API secret key  #
  #####################################################

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: Cursor

The webserver/API secret key conditional was incorrectly wrapping all
deprecation warnings (securityContext, workers.*, webserver.defaultUser),
causing them to only display when no secret key was configured. Moved the
conditional to only wrap the secret key warning where it belongs.
@jedcunningham jedcunningham added this to the Airflow 3.1.8 milestone Mar 2, 2026
@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Mar 2, 2026
@jedcunningham
Copy link
Member Author

(This was a fun discovery!)

@jedcunningham jedcunningham merged commit f83882e into apache:main Mar 2, 2026
176 of 182 checks passed
@jedcunningham jedcunningham deleted the fix_chart_notes branch March 2, 2026 22:23
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants