|
def | __init__ (self, k8s_namespace, *deployment_name, image_name, td_bootstrap_image, gcp.api.GcpApiManager gcp_api_manager, str gcp_project, str gcp_service_account, xds_server_uri=None, network='default', service_account_name=None, stats_port=8079, deployment_template='client.deployment.yaml', service_account_template='service-account.yaml', reuse_namespace=False, namespace_template=None, debug_use_port_forwarding=False, enable_workload_identity=True) |
|
def | cleanup (self, *force=False, force_namespace=False) |
|
str | make_namespace_name (cls, str resource_prefix, str resource_suffix, str name='client') |
|
XdsTestClient | run (self, *server_target, rpc='UnaryCall', qps=25, metadata='', secure_mode=False, config_mesh=None, print_response=False) |
|
def | __init__ (self, k8s_namespace, namespace_template=None, reuse_namespace=False) |
|
def | cleanup (self, *force=False) |
|
def | delete_namespace (self, wait_for_deletion=True) |
|
def | run (self, **kwargs) |
|
Definition at line 228 of file client_app.py.
◆ __init__()
def framework.test_app.client_app.KubernetesClientRunner.__init__ |
( |
|
self, |
|
|
|
k8s_namespace, |
|
|
* |
deployment_name, |
|
|
|
image_name, |
|
|
|
td_bootstrap_image, |
|
|
gcp.api.GcpApiManager |
gcp_api_manager, |
|
|
str |
gcp_project, |
|
|
str |
gcp_service_account, |
|
|
|
xds_server_uri = None , |
|
|
|
network = 'default' , |
|
|
|
service_account_name = None , |
|
|
|
stats_port = 8079 , |
|
|
|
deployment_template = 'client.deployment.yaml' , |
|
|
|
service_account_template = 'service-account.yaml' , |
|
|
|
reuse_namespace = False , |
|
|
|
namespace_template = None , |
|
|
|
debug_use_port_forwarding = False , |
|
|
|
enable_workload_identity = True |
|
) |
| |
◆ cleanup()
def framework.test_app.client_app.KubernetesClientRunner.cleanup |
( |
|
self, |
|
|
* |
force = False , |
|
|
|
force_namespace = False |
|
) |
| |
◆ make_namespace_name()
str framework.test_app.client_app.KubernetesClientRunner.make_namespace_name |
( |
|
cls, |
|
|
str |
resource_prefix, |
|
|
str |
resource_suffix, |
|
|
str |
name = 'client' |
|
) |
| |
A helper to make consistent XdsTestClient kubernetes namespace name
for given resource prefix and suffix.
Note: the idea is to intentionally produce different namespace name for
the test server, and the test client, as that closely mimics real-world
deployments.
Definition at line 382 of file client_app.py.
◆ run()
XdsTestClient framework.test_app.client_app.KubernetesClientRunner.run |
( |
|
self, |
|
|
* |
server_target, |
|
|
|
rpc = 'UnaryCall' , |
|
|
|
qps = 25 , |
|
|
|
metadata = '' , |
|
|
|
secure_mode = False , |
|
|
|
config_mesh = None , |
|
|
|
print_response = False |
|
) |
| |
◆ debug_use_port_forwarding
framework.test_app.client_app.KubernetesClientRunner.debug_use_port_forwarding |
◆ deployment
framework.test_app.client_app.KubernetesClientRunner.deployment |
◆ deployment_name
framework.test_app.client_app.KubernetesClientRunner.deployment_name |
◆ deployment_template
framework.test_app.client_app.KubernetesClientRunner.deployment_template |
◆ enable_workload_identity
framework.test_app.client_app.KubernetesClientRunner.enable_workload_identity |
◆ gcp_iam
framework.test_app.client_app.KubernetesClientRunner.gcp_iam |
◆ gcp_project
framework.test_app.client_app.KubernetesClientRunner.gcp_project |
◆ gcp_service_account
framework.test_app.client_app.KubernetesClientRunner.gcp_service_account |
◆ gcp_ui_url
framework.test_app.client_app.KubernetesClientRunner.gcp_ui_url |
◆ image_name
framework.test_app.client_app.KubernetesClientRunner.image_name |
◆ network
framework.test_app.client_app.KubernetesClientRunner.network |
◆ port_forwarder
framework.test_app.client_app.KubernetesClientRunner.port_forwarder |
◆ service_account
framework.test_app.client_app.KubernetesClientRunner.service_account |
◆ service_account_name
framework.test_app.client_app.KubernetesClientRunner.service_account_name |
◆ service_account_template
framework.test_app.client_app.KubernetesClientRunner.service_account_template |
◆ stats_port
framework.test_app.client_app.KubernetesClientRunner.stats_port |
◆ td_bootstrap_image
framework.test_app.client_app.KubernetesClientRunner.td_bootstrap_image |
◆ xds_server_uri
framework.test_app.client_app.KubernetesClientRunner.xds_server_uri |
The documentation for this class was generated from the following file: