Skip to content
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

Merged
merged 1 commit into from
Jun 4, 2022
Merged

Conversation

mrlihanbo
Copy link

@mrlihanbo mrlihanbo commented May 24, 2022

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?:

`Cluster API`: Added `ProxyHeader` optional field to specify the HTTP header required by the proxy server.

@karmada-bot karmada-bot added the kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API label May 24, 2022
@karmada-bot karmada-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 24, 2022
@mrlihanbo mrlihanbo changed the title add ProxyConnectHeader API add ProxyHeader API May 24, 2022
Comment on lines 76 to 79
// 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 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.

Copy link
Contributor

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>
@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label May 28, 2022
@RainbowMango
Copy link
Member

/approve

@karmada-bot
Copy link
Collaborator

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 4, 2022
@karmada-bot karmada-bot merged commit 14e673b into karmada-io:master Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants