-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fallback): support custom entities (#6286)
* feat(fallback): support custom entities * address review comments * use existing plugin and custom entitiy
- Loading branch information
Showing
17 changed files
with
811 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
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
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
66 changes: 66 additions & 0 deletions
66
...ne/testdata/golden/fallback-config-kong-custom-entities-ee/custom-entities-on_golden.yaml
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,66 @@ | ||
_format_version: "3.0" | ||
degraphql_routes: | ||
- query: query{ contacts { name } } | ||
uri: /contacts | ||
- query: query{ contacts { name } } | ||
uri: /contacts | ||
plugins: | ||
- config: | ||
graphql_server_path: /v1/graphql | ||
name: degraphql | ||
route: default.i1.s1..80 | ||
tags: | ||
- k8s-name:p1 | ||
- k8s-namespace:default | ||
- k8s-kind:KongPlugin | ||
- k8s-uid:e97ca177-6bd2-425f-b3b1-10a521ac02a0 | ||
- k8s-group:configuration.konghq.com | ||
- k8s-version:v1 | ||
services: | ||
- connect_timeout: 60000 | ||
host: s1.default.80.svc | ||
id: 9e262d22-26f2-5bcb-8d57-c5229fb8c5a2 | ||
name: default.s1.80 | ||
path: / | ||
port: 80 | ||
protocol: http | ||
read_timeout: 60000 | ||
retries: 5 | ||
routes: | ||
- https_redirect_status_code: 426 | ||
id: 226e9894-47fd-5dd2-9af0-4b49a2b45c5e | ||
name: default.i1.s1..80 | ||
path_handling: v0 | ||
paths: | ||
- / | ||
preserve_host: true | ||
protocols: | ||
- http | ||
- https | ||
regex_priority: 0 | ||
request_buffering: true | ||
response_buffering: true | ||
strip_path: true | ||
tags: | ||
- k8s-name:i1 | ||
- k8s-namespace:default | ||
- k8s-kind:Ingress | ||
- k8s-uid:39ec2b6a-f919-4308-ad2f-07511ab424dd | ||
- k8s-group:networking.k8s.io | ||
- k8s-version:v1 | ||
tags: | ||
- k8s-name:s1 | ||
- k8s-namespace:default | ||
- k8s-kind:Service | ||
- k8s-uid:ddc15c38-7f1b-41cb-8b57-46465a7f4427 | ||
- k8s-version:v1 | ||
write_timeout: 60000 | ||
upstreams: | ||
- algorithm: round-robin | ||
name: s1.default.80.svc | ||
tags: | ||
- k8s-name:s1 | ||
- k8s-namespace:default | ||
- k8s-kind:Service | ||
- k8s-uid:ddc15c38-7f1b-41cb-8b57-46465a7f4427 | ||
- k8s-version:v1 |
2 changes: 2 additions & 0 deletions
2
.../testdata/golden/fallback-config-kong-custom-entities-ee/custom-entities-on_settings.yaml
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,2 @@ | ||
feature_flags: | ||
KongCustomEntity: true |
Oops, something went wrong.