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: ensuring consumer-group scoped plugins show tags #151

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

Prashansa-K
Copy link
Collaborator

@Prashansa-K Prashansa-K commented Dec 2, 2024

Summary

On running deck file render command, tags
were coming up for global and service/route
scoped plugins, but not for consumer-group
scoped ones. This was because the underlying
struct that were using for writer did not have
Tags as a field. This change was added in the
underlying type in go-kong.

This change upgrades the go-kong version to
v0.61.0 and adds Tags field in all missing
places while building consumer-group scoped
plugins or writing them to file.

Issues resolved

For: https://konghq.atlassian.net/browse/FTI-6292

Documentation

Testing

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

On running `deck file render` command, tags
were coming up for global and service/route
scoped plugins, but not for consumer-group
scoped ones. This was because the underlying
struct that were using for writer did not have
`Tags` as a field. This change was added in the
underlying type in go-kong.

This change upgrades the go-kong version to
v0.61.0 and adds `Tags` field in all missing
places while building consumer-group scoped
plugins or writing them to file.
For: https://konghq.atlassian.net/browse/FTI-6292
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 28.71%. Comparing base (d53b0d3) to head (80cbb8a).

Files with missing lines Patch % Lines
pkg/file/builder.go 0.00% 1 Missing ⚠️
pkg/file/writer.go 0.00% 1 Missing ⚠️
pkg/state/builder.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
- Coverage   28.72%   28.71%   -0.01%     
==========================================
  Files         106      106              
  Lines       15814    15817       +3     
==========================================
  Hits         4542     4542              
- Misses      10793    10796       +3     
  Partials      479      479              

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

@Prashansa-K Prashansa-K requested a review from pmalek December 9, 2024 07:38
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

Please make sure to add a changelog entry for this. Otherwise this looks good 👍

Copy link
Member

Choose a reason for hiding this comment

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

Any particular reason for xxx in the name :) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just following the recent convention. Earlier folders were numbered, but then xxx became the prefix.
I assumed we did so because we had already reached 35 folders.

Copy link
Member

Choose a reason for hiding this comment

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

ACK. Is 35 a magic number of sorts for us ? 🙃 Nothing against the prefix, just curious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

😂 No! I can change the name. As I said, I just looked at the last few entries and added the xxx

@pmalek pmalek merged commit 2b9555f into main Dec 9, 2024
18 checks passed
@pmalek pmalek deleted the fix/cg-plugin-tags branch December 9, 2024 11:10
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.

3 participants