Avoid unsetting target_proxy when it is actually a gRPC target proxy (#26824)

Otherwise, unless force_cleanup is set to true, the HTTP target proxy
deletion fails but still unsets the target_proxy field, resulting in the
gRPC target proxy deletion being skipped (and preventing all subsequent
cleanup operations)
reviewable/pr26829/r1
Eric Gribkoff 3 years ago committed by GitHub
parent a325d7f77a
commit 1b758b7660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/run_tests/xds_k8s_test_driver/framework/infrastructure/traffic_director.py

@ -412,7 +412,7 @@ class TrafficDirectorManager:
def delete_target_http_proxy(self, force=False):
if force:
name = self.make_resource_name(self.TARGET_PROXY_NAME)
elif self.target_proxy:
elif self.target_proxy and self.target_proxy_is_http:
name = self.target_proxy.name
else:
return

Loading…
Cancel
Save