Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have proper default for webserver.expose_config in Helm Chart #13596

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

XD-DENG
Copy link
Member

@XD-DENG XD-DENG commented Jan 10, 2021

Configuration webserver.expose_config should have consistent default value with the normal Airflow default settings (False). So we can simply remove it in values.yaml, so default value in default_airflow.cfg is respected.

This helps encourage safer setting up in Helm context, also avoid accidental exposure of config (if users don't carefully check the config before install the chart).

Ref: Slack discussion https://apache-airflow.slack.com/archives/CCPRP7943/p1610213808438200


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

webserver.expose_config should have consistent default value with
the normal Airflow default settings (False).

This helps encourage safer setting up in Helm context, also avoid
accidental exposure of config (if users don't carefully check the config
before install the chart)
@XD-DENG XD-DENG requested a review from ashb January 10, 2021 11:08
@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Jan 10, 2021
@@ -134,7 +134,7 @@ helm upgrade airflow . \

## Mounting DAGS using Git-Sync side car without Persistence

This option will use an always running Git-Sync side car on every scheduler,webserver and worker pods. The Git-Sync side car containers will sync DAGs from a git repository every configured number of seconds. If you are using the KubernetesExecutor, Git-sync will run as an initContainer on your worker pods.
This option will use an always running Git-Sync side car on every scheduler, webserver and worker pods. The Git-Sync side car containers will sync DAGs from a git repository every configured number of seconds. If you are using the KubernetesExecutor, Git-sync will run as an initContainer on your worker pods.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a simple typo fix. Not related to the scope of this PR. Not worth creating a separate PR.

@@ -705,7 +705,6 @@ config:
statsd_host: '{{ printf "%s-statsd" .Release.Name }}'
webserver:
enable_proxy_fix: 'True'
expose_config: 'True'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simply remove this line, so the default value in default_airflow.cfg is used.

@kaxil kaxil merged commit 8fd0e45 into apache:master Jan 11, 2021
kaxil pushed a commit that referenced this pull request Jan 21, 2021
webserver.expose_config should have consistent default value with
the normal Airflow default settings (False).

This helps encourage safer setting up in Helm context, also avoid
accidental exposure of config (if users don't carefully check the config
before install the chart)

(cherry picked from commit 8fd0e45)
@XD-DENG XD-DENG deleted the chart-expose-config-default branch March 26, 2021 08:05
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.

2 participants