Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

Helm property: nameOverride is not honoured properly for airflow postgresql charts and the connection string is not formed as expected. Fixes the improper url formation mentioned in: #22790.

Testing results:
Without any override and release name being: adesai-airflow, namespace: airflow
postgresql://postgres:postgres@adesai-airflow-postgresql.airflow:5432/postgres?sslmode=disable

With override and same configs as above:
postgresql://postgres:postgres@overrideName:5432/postgres?sslmode=disable


^ 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.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member

potiuk commented Jan 29, 2023

Nit: Should we get a test for it to avoid regression?

@amoghrajesh
Copy link
Contributor Author

Makes sense to add unit tests @potiuk
Added them.

@potiuk potiuk force-pushed the issue-22790-nameOverride branch from 386bbfa to 5c2c55f Compare January 29, 2023 16:34
@amoghrajesh amoghrajesh requested review from jedcunningham and removed request for dstandish January 30, 2023 18:25
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.

Looks like static checks are failing. I'd also suggest that you set up the pre-commit hooks, they help catch these issues early 👍.

@amoghrajesh
Copy link
Contributor Author

@jedcunningham @potiuk made the required changes. Can someone merge it once the CI passes?
The pre commit hooks are passing now

@amoghrajesh
Copy link
Contributor Author

Just fixed all the test case issues. @potiuk / @jedcunningham can someone merge the PR once the CI passes?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants