Skip to content

Commit

Permalink
fix: consumer-group scoped plugins not showing tags
Browse files Browse the repository at this point in the history
On running deck file render command, tags were
coming up for global and service/route scoped
plugins. However, for consumer-group scoped
plugins, the tags did not populate. This was because
the underlying struct did not have tags in the first
place.

This change updates the underlying struct for
consumer-group plugins by adding tags to them
as well. This will ensure that tags show up
during deck file render.
For: Kong/deck#1417
  • Loading branch information
Prashansa-K committed Nov 27, 2024
1 parent e7b8a6b commit 0b484ec
Show file tree
Hide file tree
Showing 2 changed files with 12 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 @@ -42,6 +42,7 @@ type ConsumerGroupPlugin struct {
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"`
Tags []*string `json:"tags,omitempty" yaml:"tags,omitempty"`
}

// FriendlyName returns the endpoint key name or ID.
Expand Down
11 changes: 11 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 0b484ec

Please sign in to comment.