-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kong] handle DB-backed stream listen issue
#295 requires a workaround that behaves differently depending on whether a DB-backed instance has or does not have stream listens configured. At the end of wait-for-db, this workaround removes the problem socket file if it exists, or does nothing if it does not. test5-values.yaml is a new DB-backed test that does not include stream listens, as the only existing DB-backed test did include stream listens.
- Loading branch information
Travis Raines
committed
Feb 25, 2021
1 parent
abaa697
commit 4f0891b
Showing
3 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This tests the following unrelated aspects of Ingress Controller | ||
# - ingressController deploys with a database | ||
# - TODO database-backed proxy works _without_ stream listens | ||
# This test is a duplicate of test2-values.yaml to handle the https://github.com/Kong/charts/issues/295 | ||
# workaround when the socket file is _not_ created | ||
ingressController: | ||
enabled: true | ||
installCRDs: false | ||
env: | ||
anonymous_reports: "false" | ||
postgresql: | ||
enabled: true | ||
postgresqlUsername: kong | ||
postgresqlDatabase: kong | ||
service: | ||
port: 5432 | ||
env: | ||
anonymous_reports: "off" | ||
database: "postgres" | ||
# - ingress resources are created without hosts | ||
admin: | ||
type: NodePort | ||
ingress: | ||
enabled: true | ||
hosts: [] | ||
path: / | ||
proxy: | ||
type: NodePort | ||
ingress: | ||
enabled: true | ||
hostname: proxy.kong.example | ||
annotations: {} | ||
path: / | ||
|
||
# - PDB is enabled | ||
podDisruptionBudget: | ||
enabled: true | ||
# update strategy | ||
updateStrategy: | ||
type: "RollingUpdate" | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 |
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