-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kong] refactor listener templates (#72)
Unify listener templates and make them more expressive: * Listener strings are now generated by passing the listener/service configuration block (e.g. "proxy") to the "kong.listen" helper, rather than templating each listen string individually. * The admin listen now uses the same configuration format as other listeners, with default values expressing the standard configuration (no service creation, TLS-only listen). Legacy configuration is still supported, but displays a deprecation warning in NOTES.txt. * Listener configuration now allows specifying listen parameters, rather than hard-coding them into the template (though "ssl" is still hard-coded for TLS listens). To avoid too complicated a configuration change, users are still limited to two listens, HTTP and TLS, rather than being able to freely define listens. * CI tests and README.md now account for the above. * NOTES.txt spacing now tries to more closely adhere to 80-char columns. * Add a "kong.adminLocalURL" helper to generate the local URL for the admin API, for use with the ingress controller.
- Loading branch information
Showing
12 changed files
with
361 additions
and
184 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,36 @@ | ||
# CI test for testing dbless deployment without ingress controllers using legacy admin listen | ||
# TODO: remove legacy admin listen behavior at a future date | ||
# - disable ingress controller | ||
ingressController: | ||
enabled: false | ||
# - use legacy admin listen config | ||
admin: | ||
enabled: true | ||
useTLS: true | ||
servicePort: 8444 | ||
containerPort: 8444 | ||
|
||
# - disable DB for kong | ||
env: | ||
database: "off" | ||
postgresql: | ||
enabled: false | ||
# - supply DBless config for kong | ||
dblessConfig: | ||
# Or the configuration is passed in full-text below | ||
config: | ||
_format_version: "1.1" | ||
services: | ||
- name: test-svc | ||
url: http://example.com | ||
routes: | ||
- name: test | ||
paths: | ||
- /test | ||
plugins: | ||
- name: request-termination | ||
config: | ||
status_code: 200 | ||
message: "dbless-config" | ||
proxy: | ||
type: NodePort |
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
Oops, something went wrong.