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

Helm chart fixes in pod template #11511

Merged
merged 2 commits into from
Oct 19, 2020
Merged

Conversation

fllaca
Copy link
Contributor

@fllaca fllaca commented Oct 13, 2020

I came with some little issues while testing the chart in this repo locally, here I'm bundling some fixes to them:

  • default pod_template image to defaultAirflowRepository:defaultAirflowTag
  • fix never-ending git-sync init containers
  • fix broken reference to volume

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Oct 13, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 13, 2020

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, pylint and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@github-actions
Copy link

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*.

@github-actions
Copy link

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*.

@potiuk
Copy link
Member

potiuk commented Oct 13, 2020

Hello @fllaca, Can you please rebase this one to latest master. We fixed (hopefully) a problem with queues of jobs for GitHub actions and I think when you rebase, it shoudl run much faster (more info on devlist shortly).

@github-actions
Copy link

The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks$,^Build docs$,^Spell check docs$,^Backport packages$,^Checks: Helm tests$,^Test OpenAPI*.

path: spec.containers[0].image
value: dummy_image
Copy link
Contributor Author

@fllaca fllaca Oct 14, 2020

Choose a reason for hiding this comment

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

I couldn't find a way to assert that this value should be the default defaultAirflowRepository without hardcoding the test with apache/airflow:1.10.12 (copying from values.yaml). If that hardcoded value in the assertion is fine, I can change the test back to equal assert.

@fllaca fllaca force-pushed the helm_chart_fixes branch 2 times, most recently from c210eb2 to 150fa81 Compare October 14, 2020 18:12
@fllaca
Copy link
Contributor Author

fllaca commented Oct 14, 2020

Hi @potiuk! thanks for taking a look to this. I just rebased and added some helm test. One of the kubernetes test is failing (CI Build / K8s: 3.7 v1.17.5 image (pull_request)), would you mind checking it? I went to the build logs but I'm not very sure what is wrong there and/or if it is related to the changes in this PR.

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume
@mik-laj
Copy link
Member

mik-laj commented Oct 19, 2020

A very interesting change. I did not know the GIT_ONE_TIME option. Thanks for adding that. In our case, it very makes sense.

I also see that you made sure that this change had good unit test coverage. We are working to modernize our unit tests to overcome some of the limitations of Helm-unittest. One of its limitations even you have encountered - #11511 (comment)
I would be happy if you could share your experience on this ticket: #11657
Can you also help us?

@mik-laj mik-laj merged commit 52b4733 into apache:master Oct 19, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 19, 2020

Awesome work, congrats on your first merged pull request!

potiuk pushed a commit that referenced this pull request Nov 15, 2020
* Helm chart fixes in pod template

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume

* Fix helm chart test

(cherry picked from commit 52b4733)
@potiuk potiuk added the type:improvement Changelog: Improvements label Nov 15, 2020
@potiuk potiuk added this to the Airflow 1.10.13 milestone Nov 15, 2020
@potiuk potiuk added type:bug-fix Changelog: Bug Fixes and removed type:improvement Changelog: Improvements labels Nov 15, 2020
potiuk pushed a commit that referenced this pull request Nov 16, 2020
* Helm chart fixes in pod template

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume

* Fix helm chart test

(cherry picked from commit 52b4733)
potiuk pushed a commit that referenced this pull request Nov 16, 2020
* Helm chart fixes in pod template

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume

* Fix helm chart test

(cherry picked from commit 52b4733)
kaxil pushed a commit that referenced this pull request Nov 18, 2020
* Helm chart fixes in pod template

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume

* Fix helm chart test

(cherry picked from commit 52b4733)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
)

* Helm chart fixes in pod template

- default pod_template image to `defaultAirflowRepository:defaultAirflowTag`
- fix never-ending git-sync init containers
- fix broken reference to volume

* Fix helm chart test

(cherry picked from commit 52b4733)
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 type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants