fix path for canary by header + add e2e #365
Hi @jgreeer. Thanks for your PR.
I'm waiting for a kubernetes-sigs 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.
<details>
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-sigs/prow repository.
</details>
@jgreer could you add an integration test
/ok-to-test
/approve
this logic is repeated on lines 142-149. We can extract this into a helper function to reduce the size of canaryFeature function which is already quite long.
will refactor this
Approved these changes.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubernetes-sigs/ingress2gateway/pull/365#pullrequestreview-3891762151" title="Approved">bexxmodd</a>, <a href="https://github.com/kubernetes-sigs/ingress2gateway/pull/365#" title="Author self-approved">jgreeer</a>, <a href="https://github.com/kubernetes-sigs/ingress2gateway/pull/365#issuecomment-3969154943" title="Approved">Stevenjin8</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
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
</details>
<!-- META={"approvers":[]} -->
@bexxmodd can you lgtm
/lgtm
bexxmodd
jgreeer
What type of PR is this?
<!--
/kind bug
What this PR does / why we need it:
When creating the new rules for matching the canary header, we don't add the matches from the existing rule. This means the canary header matching isn't scoped to the path defined in the ingress-nginx ingress if there is one.
Does this PR introduce a user-facing change?:
<!--
If no, just write "NONE" in the release-note block below.
If yes, please enter a release note below:
-->
``
release-note
``added path support for canary by header