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 deployment fails when postgresql.nameOverride is used #29214

Merged
merged 18 commits into from
Feb 2, 2023

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.

@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 👍.

tests/charts/test_basic_helm_chart.py Outdated Show resolved Hide resolved
@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.

None yet

3 participants