Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: plugin shown as global despite a consumer-group present #134

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

Prashansa-K
Copy link
Collaborator

Prior to this fix, deck was reporting the plugins as global even if a consumer-group was attached to them. This was only a output problem, not a association problem. The fix checks if a consumer-group exists or not before reporting any plugin as global.

Fixes: Kong/deck#1005

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Prior to this fix, deck was reporting the plugins as global
even if a consumer-group was attached to them. This was only
a output problem, not a association problem. The fix
checks if a consumer-group exists or not before reporting
any plugin as global.

Fixes: Kong/deck#1005
@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 42.76%. Comparing base (6d1bb06) to head (8c392b6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   42.72%   42.76%   +0.04%     
==========================================
  Files          75       75              
  Lines        8820     8820              
==========================================
+ Hits         3768     3772       +4     
+ Misses       4588     4586       -2     
+ Partials      464      462       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@czeslavo czeslavo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Just two tiny nits in tests.

pkg/state/types_test.go Outdated Show resolved Hide resolved
pkg/state/types_test.go Outdated Show resolved Hide resolved
@Prashansa-K Prashansa-K merged commit 64dd801 into main Aug 27, 2024
18 checks passed
@Prashansa-K Prashansa-K deleted the fix/consumergroup-plugin-association-global branch August 27, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugins scoped to consumers groups are shown as global
3 participants