-
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.
fix: fixing consumer-group related dump config for deck.
With changes added in go-kong, to skip listing consumers while doing a GET call on a consumer_group, dump config with gw 3.9+ starting showing issues. Associations between a consumer and consumer-group were missing. Thus, we are pushing the no listing consumers feature behind a flag for now, applicable only for dump command as a starting point.
- Loading branch information
1 parent
caaf75c
commit dd60952
Showing
6 changed files
with
95 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
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
14 changes: 14 additions & 0 deletions
14
...integration/testdata/dump/004-skip-consumers-with-consumer-groups/expected-with-flag.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,14 @@ | ||
_format_version: "3.0" | ||
consumer_groups: | ||
- name: gold | ||
tags: | ||
- tag1 | ||
- tag2 | ||
- name: silver | ||
tags: | ||
- tag1 | ||
- tag3 | ||
consumers: | ||
- username: bar | ||
- username: baz | ||
- username: foo |
29 changes: 29 additions & 0 deletions
29
...egration/testdata/dump/004-skip-consumers-with-consumer-groups/expected-without-flag.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,29 @@ | ||
_format_version: "3.0" | ||
consumer_groups: | ||
- name: gold | ||
tags: | ||
- tag1 | ||
- tag2 | ||
- name: silver | ||
tags: | ||
- tag1 | ||
- tag3 | ||
consumers: | ||
- groups: | ||
- name: silver | ||
tags: | ||
- tag1 | ||
- tag3 | ||
username: bar | ||
- groups: | ||
- name: silver | ||
tags: | ||
- tag1 | ||
- tag3 | ||
username: baz | ||
- groups: | ||
- name: gold | ||
tags: | ||
- tag1 | ||
- tag2 | ||
username: foo |
20 changes: 20 additions & 0 deletions
20
tests/integration/testdata/dump/004-skip-consumers-with-consumer-groups/kong.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,20 @@ | ||
_format_version: "3.0" | ||
consumer_groups: | ||
- name: silver | ||
tags: | ||
- tag1 | ||
- tag3 | ||
- name: gold | ||
tags: | ||
- tag1 | ||
- tag2 | ||
consumers: | ||
- username: foo | ||
groups: | ||
- name: gold | ||
- username: bar | ||
groups: | ||
- name: silver | ||
- username: baz | ||
groups: | ||
- name: silver |