fix: Helm execution_api_server_url when base_url has a subpath#51454
Merged
romsharon98 merged 2 commits intoapache:mainfrom Jun 17, 2025
Merged
Conversation
Contributor
|
Can you add some tests with those examples you written? |
Contributor
Author
|
Sure thing, I initially missed the tests here: https://github.com/apache/airflow/blob/main/helm-tests%2Ftests%2Fhelm_tests%2Fairflow_core%2Ftest_api_server.py I will add a new test case today. |
Contributor
Author
|
@romsharon98 done, i add 4 cases for airflow > v3 and one for <v3. Let me know if there are other cases we want to include. |
6e0fbdf to
9866707
Compare
romsharon98
approved these changes
Jun 11, 2025
Contributor
Author
|
The test failure seems unrelated |
When the `config.core.base_url` has a subpath, this path should be copied to the `execution_api_server_url` as a path-prefix. For example, when `base_url=http://example.com/airflow`, then the `execution_api_server_url=http://name-api-server:8080/airflow/execution` The chart behavior is unchanged if - the `base_url` is empty - the `base_url` does _not_ have a subpath - the `execution_api_server_url` is already set in the config Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
136e7fe to
3ab8304
Compare
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
RoyLee1224
pushed a commit
to RoyLee1224/airflow
that referenced
this pull request
Jun 17, 2025
25 tasks
RoyLee1224
pushed a commit
to RoyLee1224/airflow
that referenced
this pull request
Jun 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the
config.core.base_urlhas a subpath, this path should be copied to theexecution_api_server_urlas a path-prefix.For example, when
base_url=http://example.com/airflow, then theexecution_api_server_url=http://name-api-server:8080/airflow/executionThe chart behavior is unchanged if
base_urlis emptybase_urldoes not have a subpathexecution_api_server_urlis already set in the configThis can easily be tested using
helm template, here are the 4 cases I consideredNo config overrides will produce the current behavior
Adding a
base_urlwith a sub-path shows the new behavior of copying the subpath to the execution urlAdding a
base_urlwithout a subpath also preserves the existing behaviorFinallly, even adding a subpath to the base url, if the execution url is directly set, this is preserved
Closes: #51450