Feature/ssl redirect#290
Conversation
| // Convert plain ingress resources to gateway resources, ignoring all | ||
| // provider-specific features. | ||
| ir, errs := common.ToIR(ingressList, storage.ServicePorts, i2gw.ProviderImplementationSpecificOptions{}) | ||
| pIR, errs := common.ToIR(ingressList, storage.ServicePorts, i2gw.ProviderImplementationSpecificOptions{}) |
There was a problem hiding this comment.
What's the significance of this rename?
There was a problem hiding this comment.
Its more for consistency. Its not everywhere (just to minimize diff form refactor), but we use pIR here and there. Its to differentiate between provider and emitter IR.
8306db6 to
e68b1a5
Compare
| UseRegexAnnotation = "nginx.ingress.kubernetes.io/use-regex" | ||
|
|
||
| // SSL Redirect annotation | ||
| SSLRedirectAnnotation = "nginx.ingress.kubernetes.io/ssl-redirect" |
There was a problem hiding this comment.
in the description you wrote that you add support for force-ssl-redirect but i can see different annotation
|
holding as we might need to wait for a gwapi release. |
|
ah its probably fine. Its coming out on the next release. |
|
we need to redirect with code 308. In 1.4 HTTPRedirectFilter only supports 301, 302. 1.5 (Dev right now) adds support for 303, 307 and 308 |
|
/lgtm Thank you! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: LiorLieberman, robscott, Stevenjin8 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* non-regex rewrites * handle regex paths * non-nil map * ssl redirect * some fixes * fix tests * lint * Better bool parsing
depends on #288 . This PR is pretty important as nginx.ingress.kubernetes.io/force-ssl-redirect is true by default
/kind feature
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: