-
Notifications
You must be signed in to change notification settings - Fork 594
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
Add override support for Knative Services #908
Conversation
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.
Hi @rafaelfelix,
Thanks for your contribution!
Could you please add a test under parser_test.go
for cases where a Knative Ingress has, and doesn't have, an override annotation?
For reference, you can reuse TestKnativeIngressAndPlugins
: create a test like this:
- Arrange: create a
NewFakeStore()
with aKnativeIngress
and aKongIngress
therein, - Act:
Build(logger, fakestore)
- Assert: that the resulting KongState object has the expected overrides in place
hi @mflendrich! just pushed the tests as requested. let me know if there's any other case we gotta cover :) thanks |
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.
Looks good to me!
@hbagdi , is there anything we've missed that needs attention? You're more familiar with the issue than I am. If it's good to go, please merge 🔥
@hbagdi, @mflendrich please review again whenever you have time. Thanks |
@rafaelfelix This needs to target the |
…k with knative ingresses konghq.com/https-redirect-status-code, konghq.com/protocols, konghq.com/strip-path and konghq.com/methods
@hbagdi just rebased my branch with thank you |
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.
It is interesting to see how a single line patch can add this functionality now.
Thank you for your contribution. Please fill out the following form to claim your contributor swag: |
What this PR does / why we need it: Add override support for Knative Services
Which issue this PR fixes: fixes #838
Special notes for your reviewer: