forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow chart to work with custom cluster domains (apache#15640)
K8s clusters can use a different cluster domain than the default `cluster.local`. This change will make the chart compatible with those clusters as well.
- Loading branch information
1 parent
0f97a39
commit 59be278
Showing
4 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,8 @@ def test_default_connection(self): | |
connection = self._get_connection({}) | ||
|
||
assert ( | ||
"postgresql://postgres:[email protected].svc.cluster.local:5432" | ||
"/postgres?sslmode=disable" == connection | ||
"postgresql://postgres:[email protected]:5432/postgres?sslmode=disable" | ||
== connection | ||
) | ||
|
||
def test_should_set_pgbouncer_overrides_when_enabled(self): | ||
|
@@ -63,7 +63,7 @@ def test_should_set_pgbouncer_overrides_when_enabled(self): | |
|
||
# host, port, dbname get overridden | ||
assert ( | ||
"postgresql://postgres:[email protected].svc.cluster.local:6543" | ||
"postgresql://postgres:[email protected]:6543" | ||
"/RELEASE-NAME-metadata?sslmode=disable" == connection | ||
) | ||
|
||
|
@@ -76,7 +76,7 @@ def test_should_set_pgbouncer_overrides_with_non_chart_database_when_enabled(sel | |
|
||
# host, port, dbname still get overridden even with an non-chart db | ||
assert ( | ||
"postgresql://someuser:[email protected].svc.cluster.local:6543" | ||
"postgresql://someuser:[email protected]:6543" | ||
"/RELEASE-NAME-metadata?sslmode=disable" == connection | ||
) | ||
|
||
|
This file contains 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