-
Notifications
You must be signed in to change notification settings - Fork 41
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: fill config defaults #309
Conversation
…config_defaults
Co-authored-by: Patryk Małek <[email protected]>
Co-authored-by: Patryk Małek <[email protected]>
Co-authored-by: Patryk Małek <[email protected]>
Co-authored-by: Patryk Małek <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #309 +/- ##
===========================================
- Coverage 52.85% 37.68% -15.17%
===========================================
Files 66 68 +2
Lines 4885 5012 +127
===========================================
- Hits 2582 1889 -693
- Misses 1742 2790 +1048
+ Partials 561 333 -228
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 22 files with indirect coverage changes 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 in Codecov by Sentry. |
Test cases for nil and empty fields in config
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.
Thanks! 👍 Some minor nits.
I'll let @rainest double check when he comes online but looks good to me.
Co-authored-by: Patryk Małek <[email protected]>
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.
Kong/kubernetes-ingress-controller#3866 trial run integrated into KIC is passing Knative and conformance now, so extra confirmation in integration that the Request Transformer configuration is no longer getting clobbered.
Kong/deck#888 now succeeds as well, where it was failing with 0.39.1
this fixes #307 |
@nishant95 @pmalek @rainest looks like this change introduced another bug where an array is completely ignored. we can reproduce with deck and the following:
with deck v1.21.0 and go-kong 0.41.0+, |
ref: #333 |
@aboudreault #309 only adds handling for subconfig of type "array", how does this cause a subconfig of type "set" to fail? Also, the handle_missing_fields in lua code and FillPluginsDefaults in go-kong seems out of sync. We recently faced an issue in case of non-required subconfig of type record (Testing the fix, yet to raise a PR). |
@pmalek @rainest @aboudreault |
This has the fix applied in #302 along with resolution for #307
Added test for the bug encountered in #307 as well.