Backport of testing/deployer: update deployer to use v2 catalog constructs when requested into release/1.17.x #19492
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
This PR is auto-generated from #19046 to be assessed for backporting due to the inclusion of the label backport/1.17.
The below text is copied from the body of the original PR.
Description
This updates the
testing/deployer
(aka "topology test") framework to conditionally configure and launch catalog constructs using v2 resources. This is controlled via aVersion
field on theNode
construct in atopology.Config
. This only functions for a dataplane type and has other restrictions that match the rest of v2 (no peering, no wanfed, no mesh gateways).Like config entries, you can statically provide a set of initial resources to be synced when bringing up the cluster (beyond those that are generated for you such as workloads, services, etc).
If you want to author a test that can be freely converted between v1 and v2 then that is possible. If you switch to the multi-port definition on a
topology.Service
(aka "workload/instance") then that makes v1 ineligible.This also adds a starter set of "on every PR" integration tests for single and multiport under
test-integ/catalogv2
NET-5734
Overview of commits