Port compute_api_version to other TD implementations (#27518)

pull/27521/head
Lidi Zheng 3 years ago committed by GitHub
parent 251274022c
commit 550faa6dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      tools/run_tests/xds_k8s_test_driver/framework/infrastructure/traffic_director.py

@ -556,12 +556,14 @@ class TrafficDirectorAppNetManager(TrafficDirectorManager):
*,
resource_prefix: str,
resource_suffix: Optional[str] = None,
network: str = 'default'):
network: str = 'default',
compute_api_version: str = 'v1'):
super().__init__(gcp_api_manager,
project,
resource_prefix=resource_prefix,
resource_suffix=resource_suffix,
network=network)
network=network,
compute_api_version=compute_api_version)
# API
self.netsvc = _NetworkServicesV1Alpha1(gcp_api_manager, project)
@ -656,12 +658,14 @@ class TrafficDirectorSecureManager(TrafficDirectorManager):
resource_prefix: str,
resource_suffix: Optional[str] = None,
network: str = 'default',
compute_api_version: str = 'v1',
):
super().__init__(gcp_api_manager,
project,
resource_prefix=resource_prefix,
resource_suffix=resource_suffix,
network=network)
network=network,
compute_api_version=compute_api_version)
# API
self.netsec = _NetworkSecurityV1Beta1(gcp_api_manager, project)

Loading…
Cancel
Save