-
Notifications
You must be signed in to change notification settings - Fork 129
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: do not error out on EE endpoints with no license #821
Conversation
Codecov ReportBase: 35.44% // Head: 35.44% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #821 +/- ##
=======================================
Coverage 35.44% 35.44%
=======================================
Files 92 92
Lines 11245 11245
=======================================
Hits 3986 3986
Misses 6862 6862
Partials 397 397
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -248,7 +248,7 @@ func getProxyConfiguration(ctx context.Context, group *errgroup.Group, | |||
consumerGroups, err = GetAllConsumerGroups(ctx, client, config.SelectorTags) | |||
} | |||
if err != nil { | |||
if kong.IsNotFoundErr(err) { | |||
if kong.IsNotFoundErr(err) || kong.IsForbiddenErr(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we are just returning nil
will they see a warning about this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They will only see the status code in verbose mode. Do you think we should log a warning too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be a good idea, but we can keep this as is for this PR.
Right now decK error out when the Consumer Groups and Vaults list endpoints are hit and no license is present in the Gateway. In such case, decK should continue its flow.
148e19d
to
c03e6ac
Compare
Right now decK error out when the Consumer Groups and Vaults list endpoints are hit and no license is present in the Gateway.
In such case, decK should continue its flow.