Skip to content

Fix virtual services being included in intention topology as downstreams#17099

Merged
hashi-derek merged 1 commit intomainfrom
derekm/fix_broken_tests
Apr 24, 2023
Merged

Fix virtual services being included in intention topology as downstreams#17099
hashi-derek merged 1 commit intomainfrom
derekm/fix_broken_tests

Conversation

@hashi-derek
Copy link
Copy Markdown
Contributor

@hashi-derek hashi-derek commented Apr 24, 2023

Recent changes for tproxy enhancements made a change to the intention topology lookup so that virtual services (discovery chains) were included in results. This was done to handle failover scenarios where all services instances may disappear, but a discovery-chain may still exist that should be referenced.

While not a direct issue, the intention lookups for downstream services were including virtual services in the results, which resulted in a broken unit test. Since downstream lookups will not necessarily need to be concerned with virtual services ever, this commit ensures that virtual services are only included in upstream lookups, rather than modifying the test itself.

@hashi-derek hashi-derek added pr/no-backport pr/no-changelog PR does not need a corresponding .changelog entry labels Apr 24, 2023
@hashi-derek hashi-derek marked this pull request as ready for review April 24, 2023 14:34
@hashi-derek hashi-derek requested a review from kyhavlov April 24, 2023 14:34
@hashi-derek hashi-derek merged commit a33b224 into main Apr 24, 2023
@hashi-derek hashi-derek deleted the derekm/fix_broken_tests branch April 24, 2023 17:03
jmurret added a commit that referenced this pull request Apr 24, 2023
… of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 24, 2023
… of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 24, 2023
…tory as part of the calculation into release/1.14.x (#17110)

* backport of commit 07d9aeb

* backport of commit 0c0a339

* ci: fix runner calculation to exclude the top level directory as part of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>

---------

Co-authored-by: John Murret <[email protected]>
Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 24, 2023
… of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 24, 2023
… of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 25, 2023
…tory as part of the calculation into release/1.13.x (#17109)

* no-op commit due to failed cherry-picking

* ci: fix runner calculation to exclude the top level directory as part of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>

---------

Co-authored-by: temp <[email protected]>
Co-authored-by: John Murret <[email protected]>
Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
jmurret added a commit that referenced this pull request Apr 25, 2023
…tory as part of the calculation into release/1.15.x (#17111)

* backport of commit 07d9aeb

* backport of commit 0c0a339

* ci: fix runner calculation to exclude the top level directory as part of the calculation (#17090)

* fix runner calculation to exclude the top level directory as part of the calculation

* fix the logic for generating the directories/functions

* De-scope tenenacy requirements to OSS only for now. (#17087)

Partition and namespace must be "default"
Peername must be "local"

* Fix virtual services being included in intention topology as downstreams. (#17099)

* Merge pull request #5200 from hashicorp/NET-3758 (#17102)

* Merge pull request #5200 from hashicorp/NET-3758

NET-3758: connect: update supported envoy versions to 1.26.0

* lint

* CI: remove uneeded AWS creds from test-integrations (#17104)

* Update test-integrations.yml

* removing permission lies now that vault is not used in this job.

---------

Co-authored-by: John Murret <[email protected]>

* update based on feedback

---------

Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>

---------

Co-authored-by: John Murret <[email protected]>
Co-authored-by: Semir Patel <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
Co-authored-by: Anita Akaeze <[email protected]>
Co-authored-by: Dan Bond <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/no-backport pr/no-changelog PR does not need a corresponding .changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants