-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The `deck gateway apply` command added in v1.43.0 added additional HTTP calls to discover which functions are enabled. This does not work well when using an RBAC user with restricted permissions. This change removes those additional checks and delegates the lookup of foreign keys for partial applications to `go-database-reconciler` --------- Co-authored-by: Patryk Małek <[email protected]>
- Loading branch information
Showing
19 changed files
with
222 additions
and
74 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
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
24 changes: 24 additions & 0 deletions
24
tests/integration/testdata/apply/005-foreign-keys-services/expected-state.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,24 @@ | ||
_format_version: "3.0" | ||
services: | ||
- connect_timeout: 60000 | ||
enabled: true | ||
host: httpbin.konghq.com | ||
name: example-service | ||
plugins: | ||
- config: | ||
body: null | ||
content_type: null | ||
echo: false | ||
message: null | ||
status_code: 404 | ||
trigger: null | ||
enabled: true | ||
name: request-termination | ||
protocols: | ||
- http | ||
- https | ||
port: 80 | ||
protocol: http | ||
read_timeout: 60000 | ||
retries: 5 | ||
write_timeout: 60000 |
15 changes: 15 additions & 0 deletions
15
tests/integration/testdata/apply/005-foreign-keys-services/plugin-01.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,15 @@ | ||
_format_version: "3.0" | ||
plugins: | ||
- name: request-termination | ||
enabled: true | ||
service: example-service | ||
config: | ||
status_code: 404 | ||
body: null | ||
content_type: null | ||
echo: false | ||
message: null | ||
trigger: null | ||
protocols: | ||
- http | ||
- https |
4 changes: 4 additions & 0 deletions
4
tests/integration/testdata/apply/005-foreign-keys-services/service-01.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,4 @@ | ||
_format_version: "3.0" | ||
services: | ||
- name: example-service | ||
url: http://httpbin.konghq.com |
28 changes: 28 additions & 0 deletions
28
tests/integration/testdata/apply/006-foreign-keys-routes/expected-state.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,28 @@ | ||
_format_version: "3.0" | ||
routes: | ||
- https_redirect_status_code: 426 | ||
name: example-route | ||
path_handling: v0 | ||
paths: | ||
- /mock | ||
plugins: | ||
- config: | ||
body: null | ||
content_type: null | ||
echo: false | ||
message: null | ||
status_code: 404 | ||
trigger: null | ||
enabled: true | ||
name: request-termination | ||
protocols: | ||
- http | ||
- https | ||
preserve_host: false | ||
protocols: | ||
- http | ||
- https | ||
regex_priority: 0 | ||
request_buffering: true | ||
response_buffering: true | ||
strip_path: true |
Oops, something went wrong.