-
Notifications
You must be signed in to change notification settings - Fork 303
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 Custom Response Header Logic and the Unit Tests for it #1772
Add Custom Response Header Logic and the Unit Tests for it #1772
Conversation
Hi @songrx1997. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @swetharepakula |
/ok-to-test |
@@ -0,0 +1,47 @@ | |||
/* | |||
Copyright 2018 The Kubernetes Authors. |
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.
nit: change to 2022
Thanks for the change Ruixian! A couple of small nits, otherwise lgtm! Please rebase on master and update the PR. @spencerhance, please review as well. Thanks! |
) | ||
|
||
// EnsureCustomResponseHeaders reads the CustomResponseHeaders configuration specified in the ServicePort.BackendConfig | ||
// and applies it to the BackendService. It returns true if there were difference between |
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.
nit: there was a
@@ -0,0 +1,99 @@ | |||
/* | |||
Copyright 2019 The Kubernetes Authors. |
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.
nit: change to 2022
63d02cd
to
c843cfb
Compare
Thanks @swetharepakula! Just updated the PR for nits. |
adding unit test for custom response headers
c843cfb
to
a63e41d
Compare
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 @songrx1997!
Generally lgtm. We will have to be somewhat cautious in rolling this out since I think it will wipe out any existing response headers that somewhat has set manually. (Unsupported behavior but still a risk factor we've seen before).
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: songrx1997, spencerhance, swetharepakula The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.