Skip to content

Commit

Permalink
feat: add ConfigSource field into ConsumerGroupPlugin
Browse files Browse the repository at this point in the history
This commit is adding a new `ConfigSource` field into the
`ConsumerGroupPlugin` struct. This is not a field that should
be used for online operation, but it's needed by the
the `go-database-reconciler` to allow decK to work with
plugins config deduplication with Consumer Groups as well.

Ref: https://docs.konghq.com/deck/latest/guides/deduplicate-plugin-configuration/
  • Loading branch information
GGabriele committed Jan 25, 2024
1 parent ed91841 commit 0c077f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions kong/consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type ConsumerGroupPlugin struct {
CreatedAt *int64 `json:"created_at,omitempty" yaml:"created_at,omitempty"`
Config Configuration `json:"config,omitempty" yaml:"config,omitempty"`
ConsumerGroup *ConsumerGroup `json:"consumer_group,omitempty" yaml:"consumer_group,omitempty"`
ConfigSource *string `json:"_config,omitempty" yaml:"_config,omitempty"`
}

// FriendlyName returns the endpoint key name or ID.
Expand Down
5 changes: 5 additions & 0 deletions kong/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c077f5

Please sign in to comment.