-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix: Retains the name of the ingress for backwards compatibility #34197
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
Conversation
|
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)
|
|
Thanks for opening the issue and PR, but I believe this is not the right way to fix it @phil-park I believe the problem is in fullname definition. I think the problem is that if you use "airflow" as Release.Name the new "airflow.fullname" macro shortens to just .Release.Name. I think that was the intention @fgalind1 - but it indeed causes backwards compatibility problem. Was there any particular reason to shorten the fullname in this case @fgalind1 other than avoiding accidental duplication? I am not sure if there ia any way to avoid backwards compatibilty problems, but my vote would go to removing the shortening and leaving "airflow-airflow" if someone uses "airflow" release name (even if it looks duplicate). |
yep that's correct
Just to make it standard as that is the most common pattern I've seen in mostly all upstream charts for the
Maybe if we want to keep it for backwards compatibility we could add an option that opts-in/out that if condition like @potiuk any thoughts? |
Good for me, though this inflates options we have :) |
|
I'm actually using the name airflow-airflow-ingress. I know this is actually a bad name, but it's hard to risk removing ingress and recreating it. (There are quite a few airflows in operation.) I would appreciate it if backward compatibility was provided. |
Yeah. I wish there was an easy way to provide new defaults, while keeping the old ones if someone used them in the past. |
|
@fgalind1, is this list incorrect then and we missed the ingress changes, or is this only a problem when |
@jedcunningham that's a good point, and yes ingress should be included there. I've made a PR #34354 to cover that and clarify when that happens at least with the current implementation at this moment |
|
I found out that the reason why renaming (recreating) the ingress failed was because I used Helm's wait option. |
When an existing user upgrades from Helm chart 1.10.0 to 1.11.0-dev, the ingress name is different, so they will try to create a new one. And finally it fails. (#34196)
Therefore, to ensure backward compatibility, add airflow- to the middle of the ingress name to maintain the name before 1.10.0.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.