-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Add tests to cover sticky cookie and rewrite-target annotations #1231
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
Conversation
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://github.com/kubernetes/kubernetes/wiki/CLA-FAQ 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. |
Coverage remained the same at 44.407% when pulling 53cbb06b4ed7e2483ad550e7831aea0191e66fa3 on canhnt:sticky-path-rewriter into f0144a1 on kubernetes:master. |
Coverage remained the same at 44.313% when pulling 3c2d5f1f3c1ec6e586c6b92cbb4921466f3344f4 on canhnt:sticky-path-rewriter into 338df02 on kubernetes:master. |
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://github.com/kubernetes/kubernetes/wiki/CLA-FAQ 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. |
Coverage increased (+0.06%) to 44.378% when pulling 62797b90cb0d76b1676b7fff5f88376ba5ca1361 on canhnt:sticky-path-rewriter into e7d2ff6 on kubernetes:master. |
Coverage increased (+0.08%) to 44.391% when pulling 62797b90cb0d76b1676b7fff5f88376ba5ca1361 on canhnt:sticky-path-rewriter into e7d2ff6 on kubernetes:master. |
Coverage increased (+0.05%) to 43.764% when pulling 2be1309ce5d42c97c5ee7e7de4ad88ca6b70bbc4 on canhnt:sticky-path-rewriter into 37bd14d on kubernetes:master. |
Hi all, Thanks, |
Coverage increased (+0.1%) to 36.278% when pulling 5625c6267124ca2e37d1dca25909ca6fc48c2662 on canhnt:sticky-path-rewriter into e4c8488 on kubernetes:master. |
Coverage increased (+0.1%) to 36.241% when pulling 5625c6267124ca2e37d1dca25909ca6fc48c2662 on canhnt:sticky-path-rewriter into e4c8488 on kubernetes:master. |
@aledbf any plan for merging this pull request? we need this bugfix. |
@bilalyasar no until we have e2e test to cover this scenario |
Coverage increased (+0.07%) to 36.154% when pulling 3bc9e823366b6afab16a3759913ae9131d8c33db on canhnt:sticky-path-rewriter into 419fe52 on kubernetes:master. |
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://github.com/kubernetes/kubernetes/wiki/CLA-FAQ 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. |
Coverage increased (+0.1%) to 36.191% when pulling 77449f32489b5ca3aa4f8866565a5c8e64fc10d6 on canhnt:sticky-path-rewriter into 51da945 on kubernetes:master. |
Coverage increased (+0.07%) to 36.154% when pulling 1d1a3975755e71a14e46bf5449086bcbb1a370e6 on canhnt:sticky-path-rewriter into 51da945 on kubernetes:master. |
Coverage increased (+0.1%) to 36.191% when pulling 0b252f6398bb160fe32be9ab9a29e57f55f1c57c on canhnt:sticky-path-rewriter into 51da945 on kubernetes:master. |
@canhnt please sign the CLA |
Coverage increased (+0.1%) to 36.191% when pulling d14054cb0ced41f58d0bfa16823644afcbb356ce on canhnt:sticky-path-rewriter into 6657845 on kubernetes:master. |
@aledbf: this bug was fixed in master. I added a unit-test and e2e tests to cover this case. Could you please review it? |
/lgtm |
@canhnt thanks! |
When an ingress rule enables sticky cookie (
ingress.kubernetes.io/affinity: cookie
combining with theingress.kubernetes.io/rewrite-target
, the sticky cookie feature does not work anymore.Affect versions: from nginx-ingress-controller:0.9.0-beta.11
Reproduction:
Verify that the response header does not container a sticky cookie like
Remove ingress.kubernetes.io/rewrite-target annotation from the example.com ingress rule, the response header contains the sticky cookie.
Update: this bug has been fixed in NGINX: 0.9.0-beta.17.