-
Notifications
You must be signed in to change notification settings - Fork 822
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 ProxyHeader API #1874
add ProxyHeader API #1874
Conversation
31a4190
to
ed11149
Compare
ed11149
to
5dca803
Compare
pkg/apis/cluster/v1alpha1/types.go
Outdated
// ProxyHeader optionally specifies headers to send to | ||
// proxy configured in ProxyURL. | ||
// The map keys are the HTTP header names, and the values are the associated header payloads. | ||
// For the header with multiple values, the map value should be a comma-separated string(e.g. 'Content-Length: 0,1,2') | ||
// +optional |
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.
// ProxyHeader optionally specifies headers to send to | |
// proxy configured in ProxyURL. | |
// The map keys are the HTTP header names, and the values are the associated header payloads. | |
// For the header with multiple values, the map value should be a comma-separated string(e.g. 'Content-Length: 0,1,2') | |
// +optional | |
// ProxyHeader is the HTTP header required by proxy server. | |
// The key in the key-value pair is HTTP header key and value is the associated header payloads. | |
// For the header with multiple values, the values should be separated by comma(e.g. 'k1': 'v1,v2,v3'). | |
// +optional |
Looks good to me. Please talk to @kevin-wangzefeng and @GitHubxsy as well.
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.
/lgtm
Signed-off-by: lihanbo <lihanbo2@huawei.com>
5dca803
to
08833eb
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: RainbowMango 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 |
Signed-off-by: lihanbo lihanbo2@huawei.com
What type of PR is this?
/kind api-change
What this PR does / why we need it:
As described in #257, some member clusters are behind a proxy. And some proxies will request clients to provide necessary headers during a CONNECT request, like authorization information.
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
none
Does this PR introduce a user-facing change?: