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

added proxy-http-version annotation to override the HTTP/1.1 default … #4288

Merged
merged 1 commit into from
Jul 11, 2019
Merged

added proxy-http-version annotation to override the HTTP/1.1 default … #4288

merged 1 commit into from
Jul 11, 2019

Conversation

eshicks4
Copy link
Contributor

@eshicks4 eshicks4 commented Jul 8, 2019

…connection type to reverse proxy backends

What this PR does / why we need it:

Adds an annotation that allows us to downgrade the backend proxy connections to HTTP/1.0 if desired. This allows us to mitigate certain issues with Nginx and/or misbehaving backends. (i.e. Nginx doesn't process "100 Continue" responses correctly and some backends will send it even if no "Expect" header is provided)

Special notes for your reviewer:

1st time submitter - please be patient with me. I've had this deployed for about a week now as the primary ingress for Ohio State University's Kube cluster and (so far) no issues.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 8, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @eshicks4. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@k8s-ci-robot
Copy link
Contributor

Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA.

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.


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. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 8, 2019
@aledbf
Copy link
Member

aledbf commented Jul 8, 2019

@eshicks4 this look good. Please sign the CLA so we can start testing this change.

@eshicks4
Copy link
Contributor Author

eshicks4 commented Jul 8, 2019

It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.

Thought I had. How long does it generally take to register?

@aledbf
Copy link
Member

aledbf commented Jul 8, 2019

/check-cla

@aledbf
Copy link
Member

aledbf commented Jul 8, 2019

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.

@eshicks4 check ^^

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 8, 2019
@aledbf
Copy link
Member

aledbf commented Jul 8, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 8, 2019
@codecov-io
Copy link

codecov-io commented Jul 8, 2019

Codecov Report

Merging #4288 into master will decrease coverage by 0.71%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4288      +/-   ##
==========================================
- Coverage   58.23%   57.51%   -0.72%     
==========================================
  Files          87       87              
  Lines        6489     6942     +453     
==========================================
+ Hits         3779     3993     +214     
- Misses       2282     2442     +160     
- Partials      428      507      +79
Impacted Files Coverage Δ
internal/ingress/controller/config/config.go 98.57% <100%> (+0.01%) ⬆️
internal/ingress/controller/controller.go 46.69% <100%> (+0.06%) ⬆️
internal/ingress/annotations/proxy/main.go 59.13% <60%> (+0.04%) ⬆️
internal/k8s/main.go 59.25% <0%> (-1.12%) ⬇️
internal/ingress/annotations/ratelimit/main.go 63.15% <0%> (+1.47%) ⬆️
internal/ingress/controller/nginx.go 30.96% <0%> (+1.74%) ⬆️
internal/ingress/types_equals.go 22.55% <0%> (+3.32%) ⬆️
internal/net/ssl/ssl.go 56.86% <0%> (+6.86%) ⬆️
internal/ingress/annotations/ipwhitelist/main.go 73.17% <0%> (+17.99%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc22aed...3b0c523. Read the comment docs.

@eshicks4
Copy link
Contributor Author

eshicks4 commented Jul 8, 2019

That was it. I'd added my OSU email but hadn't verified it yet.

@aledbf
Copy link
Member

aledbf commented Jul 8, 2019

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 8, 2019
@ElvinEfendi
Copy link
Member

/lgtm

Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 11, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, ElvinEfendi, eshicks4

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

@k8s-ci-robot k8s-ci-robot merged commit fe6c086 into kubernetes:master Jul 11, 2019
@eshicks4 eshicks4 deleted the proxy-http-version-annotation branch August 12, 2019 18:47
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants