Skip to content

Conversation

@FloChehab
Copy link
Contributor

Hello @mik-laj,

I finally had time to look into #11707 ; for this issue I have introduced 4 of my soon-to-be ex-collaborators to this chart so maybe you will have new contributors (you should expect a bit less contributions from myself in the coming months).

Changes

  • Pools can now be added through the airflowPools value
  • Docs also updated in that regard

Done in collaboration with @abrasseu @Jattakuy @JonathanCiglia @manzkel .

Closes #11707

Todos

I have left a couple of TODOs mostly in docs as I was having issues cross-referencing docs locally.


^ 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.

* Pools can now be added throught the airflowPools value
* Docs also updated in that regard

Done in collaboration with @abrasseu @Jattakuy @JonathanCiglia
 @manzkel .

Closes apache#11707
Comment on lines +67 to +70
args:
- "bash"
- "-c"
- 'airflow pools import {{ template "airflow_pools_path" . }}'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
args:
- "bash"
- "-c"
- 'airflow pools import {{ template "airflow_pools_path" . }}'
args:
- "airflow"
- "pools"
- "import"
- {{ template "airflow_pools_path" . }}

I think

Copy link
Member

Choose a reason for hiding this comment

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

I'm afraid that won't work with some Docker images. It's a similar problem to: #11129

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mik-laj are we good as is ? (there are several location in the charts where airflow is called through bash -c)

set within the image, so you need to override it when deploying the chart.

..
Uncomment before merge
Copy link
Member

Choose a reason for hiding this comment

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

Should probably do this then, shouldn't we :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! As mentionned in the PR description, I am having issues cross-referencing documentation and would need help here.

Airflow Variables, Connections and Pools
----------------------------------------

Airflow variables and connections may be set directly with environment variables (see :ref:`apache-airflow:cli-and-env-variables-ref:_env_variables`). You can set them by using the chart values ``extraEnv``, or a combination of ``extraConfigMaps``/``extraSecrets`` and ``extraEnvFrom`` (see :doc:`Parameters reference <parameters-ref>`). You may also use a secret backend (**TODO, before merge. Need clarification: I am not familiar with this.**)
Copy link
Member

@mik-laj mik-laj Mar 30, 2021

Choose a reason for hiding this comment

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

it would be helpful to add an example for lazy people showing how to set up an environment variable that uses a secret.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

args:
- "bash"
- "-c"
- 'airflow pools import {{ template "airflow_pools_path" . }}'
Copy link
Member

@mik-laj mik-laj Mar 30, 2021

Choose a reason for hiding this comment

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

What do you think to add support for Airflow 1.10.13? This version uses airflow pool --import command.

if airflow pools import --help; then
    exec airflow pools import ....
else:
    exec airflow pool --import ...
fi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be doable, I haven't followed much the latest discussions arround the chart but out of curiosity when will the support for 1.10.x be dropped ?

Copy link
Member

Choose a reason for hiding this comment

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

The Chart, for now, will continue supporting 1.10.x too

Copy link
Contributor Author

@FloChehab FloChehab left a comment

Choose a reason for hiding this comment

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

Hello @mik-laj and @ashb !

Thanks for the reviews and the feedback. Sorry for the little response delays, I was on a break. I should be able to be a bit more responsive in the coming days.

Comment on lines +67 to +70
args:
- "bash"
- "-c"
- 'airflow pools import {{ template "airflow_pools_path" . }}'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mik-laj are we good as is ? (there are several location in the charts where airflow is called through bash -c)

args:
- "bash"
- "-c"
- 'airflow pools import {{ template "airflow_pools_path" . }}'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be doable, I haven't followed much the latest discussions arround the chart but out of curiosity when will the support for 1.10.x be dropped ?

set within the image, so you need to override it when deploying the chart.

..
Uncomment before merge
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes! As mentionned in the PR description, I am having issues cross-referencing documentation and would need help here.

Airflow Variables, Connections and Pools
----------------------------------------

Airflow variables and connections may be set directly with environment variables (see :ref:`apache-airflow:cli-and-env-variables-ref:_env_variables`). You can set them by using the chart values ``extraEnv``, or a combination of ``extraConfigMaps``/``extraSecrets`` and ``extraEnvFrom`` (see :doc:`Parameters reference <parameters-ref>`). You may also use a secret backend (**TODO, before merge. Need clarification: I am not familiar with this.**)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do.

@dnskr
Copy link
Contributor

dnskr commented May 17, 2021

Any progress on this feature? Looking forward to have it merged :)

@FloChehab
Copy link
Contributor Author

Hello there !
I just wanted to tell you that I am busy and my interest has shifted a bit outside of airflow.
If anyone wants to move this PR forward, feel free to go ahead (from a new one?).

Best of luck !

@github-actions
Copy link

github-actions bot commented Aug 2, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Aug 2, 2021
@github-actions github-actions bot closed this Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:CLI area:helm-chart Airflow Helm Chart kind:documentation stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manage pools in Helm Chart

5 participants