8000 Egress via Ingress VirtualServer Resource (#3491) by lucacome · Pull Request #3847 · nginx/kubernetes-ingress · GitHub
[go: up one dir, main page]

Skip to content

Conversation

lucacome
Copy link
@lucacome lucacome commented May 4, 2023

(cherry picked from commit 36ac2ef)

* Add ability for nginx service mesh to egress through a virtualserver resource

- added internalRoute field to the virtualserver 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)
@lucacome lucacome self-assigned this May 4, 2023
@lucacome lucacome requested a review from a team as a code owner May 4, 2023 01:20
@github-actions github-actions bot added bug An issue reporting a potential bug documentation Pull requests/issues for documentation helm_chart Pull requests that update the Helm Chart labels May 4, 2023
@lucacome lucacome changed the title Update release file with additional information (#3704) Egress via Ingress VirtualServer Resource (#3491) May 4, 2023
@codecov
Copy link
codecov bot commented May 4, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release-3.1@6b9da03). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             release-3.1    #3847   +/-   ##
==============================================
  Coverage               ?   52.38%           
==============================================
  Files                  ?       59           
  Lines                  ?    16890           
  Branches               ?        0           
==============================================
  Hits                   ?     8848           
  Misses                 ?     7747           
  Partials               ?      295           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lucacome lucacome merged commit 5dcba0f into release-3.1 May 4, 2023
@lucacome lucacome deleted the fix/nsm branch May 4, 2023 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a potential bug documentation Pull requests/issues for documentation helm_chart Pull requests that update the Helm Chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0