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

Chart: Use stable API versions where available #17211

Merged
merged 10 commits into from
Sep 16, 2021

Conversation

cablespaghetti
Copy link

Fixes #17188

Uses stable versions of Ingress, PodDisruptionBudget and CronJob APIs where available. There is no change for users of Kubernetes versions older than 1.19. Also tidies up some inconsistencies between the two Ingresses and removes variables on the flower Ingress which didn't do anything.

@boring-cyborg boring-cyborg bot added the area:helm-chart Airflow Helm Chart label Jul 25, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Jul 25, 2021

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/main/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, mypy 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: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@potiuk
Copy link
Member

potiuk commented Jul 26, 2021

CC: @jedcunningham @kaxil WDYT ?

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Jul 27, 2021
@github-actions
Copy link

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

Copy link
Member

@jedcunningham jedcunningham left a comment

Choose a reason for hiding this comment

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

Overall LGTM, thanks @cablespaghetti! Can you add test coverage in chart/tests as well though?

@cablespaghetti
Copy link
Author

Overall LGTM, thanks @cablespaghetti! Can you add test coverage in chart/tests as well though?

Sorry for the delay in this. I will get to this as soon as I can. I was having some trouble getting a working dev environment on my M1 Mac initially but I'm sure it won't be that hard to resolve.

@jedcunningham jedcunningham added this to the Airflow Helm Chart 1.2.0 milestone Aug 4, 2021
@renan
Copy link

renan commented Aug 24, 2021

New versions of Ingress controllers (eg: ingress-nginx) are dropping support for v1beta1 and Airflow is blocking us from updating to them.

Is there an ETA for this PR?

@kaxil
Copy link
Member

kaxil commented Aug 24, 2021

New versions of Ingress controllers (eg: ingress-nginx) are dropping support for v1beta1 and Airflow is blocking us from updating to them.

Is there an ETA for this PR?

As soon as @cablespaghetti adds the tests :)

@cablespaghetti
Copy link
Author

cablespaghetti commented Aug 24, 2021

Really sorry this has taken so long, I have been super busy both at work and outside. I will put in some time to try and get this done tomorrow.

@cablespaghetti
Copy link
Author

cablespaghetti commented Aug 25, 2021

Ok hopefully I've done enough now. Also upgraded the default it tests against to 1.22. Rerunning everything locally to check this hasn't broken anything at the moment.

edit: They passed 👍

@@ -120,24 +129,24 @@ ingress:
annotations: {}

# The path for the flower Ingress
path: ""
path: "/"
Copy link
Author

Choose a reason for hiding this comment

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

Both path and pathType are mandatory in the stable api. I don't think setting it by default is likely break many people's config but thought I'd point it out.

@cablespaghetti
Copy link
Author

I appreciate I can't complain as I took a very long time to complete the work on this PR. However just a reminder to @kaxil and @jedcunningham that this should be ready to go now. 👍

Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
@cablespaghetti
Copy link
Author

Ok it is quite rightly erroring since I changed the default for Ingress path from "" to "/". I'll change that in the schema and update the UPDATING.rst file. The other error seems to be about an unrelated SQLAlchemy deprecation though so I'll ignore that rather than make an unrelated change in this PR.

Signed-off-by: Sam Weston <sam.weston@tails.com>
Signed-off-by: Sam Weston <sam.weston@tails.com>
@cablespaghetti
Copy link
Author

I don't understand the test failure we've currently got. 😞

@jedcunningham
Copy link
Member

I don't understand the test failure we've currently got. 😞

Most likely a flaky failure, let's try it again.

@jedcunningham jedcunningham reopened this Sep 15, 2021
@jedcunningham jedcunningham merged commit 73044af into apache:main Sep 16, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Sep 16, 2021

Awesome work, congrats on your first merged pull request!

@jedcunningham
Copy link
Member

jedcunningham commented Sep 16, 2021

Thanks @cablespaghetti! Congrats on your first commit.

cognifloyd pushed a commit to cognifloyd/stackstorm-k8s that referenced this pull request Feb 16, 2022
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 okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart: Uses deprecated v1beta1 Ingress Resource. Incompatible with Kubernetes 1.22
7 participants