You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Egress via Ingress VirtualServer Resource (#3491) (#3847)
* Add ability for nginx service mesh to egress through a virtualserver resource
- added internalRoute field to the vir
10BC0
tualserver CRD
- added templates for internal routes in virtualserver templates for n+ and oss
- added unit test to validate virtualserver internal routes
- added enableInternalRoutes boolean to virtualServerConfigurator type
- updated virtualserver configuration items to include internRoute docs
* Add a description for the InternalRoute field in the VS CRD
* Add test case for nsmEgress being true in TestIsTLSEnabled
* Update the isTLSEnabled function for clarity
* Reverse function params for isTLSEnabled
* Add virtual server internal route validation and warning
- Add warning to catch cases where a virtual server internal route should not be created
- Switch variable names to match ingress naming scheme
* Add refactored VS templates to avoid duplicate listen blocks
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add conditional to prevent SpiffeClientCerts being set for internal routes
* Fix unit tests
---------
Co-authored-by: Ciara Stacke <18287516+ciarams87@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tomás Ó hAodha <86358393+tomasohaodha@users.noreply.github.com>
Co-authored-by: Venktesh Shivam Patel <ve.patel@f5.com>
(cherry picked from commit 36ac2ef)
Co-authored-by: Chase Kiefer <112438922+chase-kiefer@users.noreply.github.com>
vsc.addWarningf(vsEx.VirtualServer, "Internal Route cannot be configured for virtual server %s. Internal Routes can be enabled by setting the enable-internal-routes flag", vsEx.VirtualServer.Name)
336
+
enabledInternalRoutes=false
337
+
}
338
+
330
339
// crUpstreams maps an UpstreamName to its conf_v1.Upstream as they are generated
331
340
// necessary for generateLocation to know what Upstream each Location references
0 commit comments