Use PCRE on proxy redirect property
NGINX accepts PCRE patterns on the proxy_redirect property.
This PR introduces URLWithNginxVariableRegex, a validation to make sure that both proxy-redirect-from and proxy-redirect-to annotations accept this pattern.
Added e2e tests to cover it.
What this PR does / why we need it:
This PR covers at least these two open issues: 12917 10698
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
CVE Report (Scanner found CVE and adding report) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation only
Which issue/s this PR fixes
How Has This Been Tested?
Created e2e tests, after that: make kind-e2e-test.
Checklist:
-
My change requires a change to the documentation. -
I have updated the documentation accordingly. -
I've read the CONTRIBUTION guide -
I have added unit and/or e2e tests to cover my changes. -
All new and existing tests passed.