xDS interop: fix an issue with secondary zone namespaces not cleaned (#30717)

All alternative server runners except the failover test reuse the primary server runners' namespace. Failover test is using the secondary cluster, and manages its own namespace there. `reuse_namespace` disables namespace cleanup, and in this case it was set to `True` incorrectly.
pull/30731/head
Sergii Tkachenko 3 years ago committed by GitHub
parent 93fb6add2a
commit 666ea7cd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/run_tests/xds_k8s_test_driver/tests/failover_test.py

@ -60,7 +60,9 @@ class FailoverTest(xds_k8s_testcase.RegularXdsKubernetesTestCase):
xds_server_uri=self.xds_server_uri,
network=self.network,
debug_use_port_forwarding=self.debug_use_port_forwarding,
reuse_namespace=True)
# This runner's namespace created in the secondary cluster,
# so it's not reused and must be cleaned up.
reuse_namespace=False)
def cleanup(self):
super().cleanup()

Loading…
Cancel
Save