Public Member Functions | Public Attributes | List of all members
framework.test_app.client_app.KubernetesClientRunner Class Reference
Inheritance diagram for framework.test_app.client_app.KubernetesClientRunner:
Inheritance graph
[legend]

Public Member Functions

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)
 
- Public Member Functions inherited from framework.test_app.base_runner.KubernetesBaseRunner
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)
 

Public Attributes

 debug_use_port_forwarding
 
 deployment
 
 deployment_name
 
 deployment_template
 
 enable_workload_identity
 
 gcp_iam
 
 gcp_project
 
 gcp_service_account
 
 gcp_ui_url
 
 image_name
 
 network
 
 port_forwarder
 
 service_account
 
 service_account_name
 
 service_account_template
 
 stats_port
 
 td_bootstrap_image
 
 xds_server_uri
 
- Public Attributes inherited from framework.test_app.base_runner.KubernetesBaseRunner
 namespace
 
 namespace_template
 
 reuse_namespace
 

Additional Inherited Members

- Static Public Attributes inherited from framework.test_app.base_runner.KubernetesBaseRunner
string ROLE_WORKLOAD_IDENTITY_USER = 'roles/iam.workloadIdentityUser'
 
string TEMPLATE_DIR_NAME = 'kubernetes-manifests'
 
string TEMPLATE_DIR_RELATIVE_PATH = f'../../{TEMPLATE_DIR_NAME}'
 

Detailed Description

Definition at line 228 of file client_app.py.

Constructor & Destructor Documentation

◆ __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 
)

Definition at line 230 of file client_app.py.

Member Function Documentation

◆ cleanup()

def framework.test_app.client_app.KubernetesClientRunner.cleanup (   self,
force = False,
  force_namespace = False 
)

Definition at line 365 of file client_app.py.

◆ 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 
)

Definition at line 286 of file client_app.py.

Member Data Documentation

◆ debug_use_port_forwarding

framework.test_app.client_app.KubernetesClientRunner.debug_use_port_forwarding

Definition at line 242 of file client_app.py.

◆ deployment

framework.test_app.client_app.KubernetesClientRunner.deployment

Definition at line 315 of file client_app.py.

◆ deployment_name

framework.test_app.client_app.KubernetesClientRunner.deployment_name

Definition at line 234 of file client_app.py.

◆ deployment_template

framework.test_app.client_app.KubernetesClientRunner.deployment_template

Definition at line 241 of file client_app.py.

◆ enable_workload_identity

framework.test_app.client_app.KubernetesClientRunner.enable_workload_identity

Definition at line 243 of file client_app.py.

◆ gcp_iam

framework.test_app.client_app.KubernetesClientRunner.gcp_iam

Definition at line 259 of file client_app.py.

◆ gcp_project

framework.test_app.client_app.KubernetesClientRunner.gcp_project

Definition at line 253 of file client_app.py.

◆ gcp_service_account

framework.test_app.client_app.KubernetesClientRunner.gcp_service_account

Definition at line 256 of file client_app.py.

◆ gcp_ui_url

framework.test_app.client_app.KubernetesClientRunner.gcp_ui_url

Definition at line 254 of file client_app.py.

◆ image_name

framework.test_app.client_app.KubernetesClientRunner.image_name

Definition at line 235 of file client_app.py.

◆ network

framework.test_app.client_app.KubernetesClientRunner.network

Definition at line 240 of file client_app.py.

◆ port_forwarder

framework.test_app.client_app.KubernetesClientRunner.port_forwarder

Definition at line 346 of file client_app.py.

◆ service_account

framework.test_app.client_app.KubernetesClientRunner.service_account

Definition at line 308 of file client_app.py.

◆ service_account_name

framework.test_app.client_app.KubernetesClientRunner.service_account_name

Definition at line 247 of file client_app.py.

◆ service_account_template

framework.test_app.client_app.KubernetesClientRunner.service_account_template

Definition at line 248 of file client_app.py.

◆ stats_port

framework.test_app.client_app.KubernetesClientRunner.stats_port

Definition at line 236 of file client_app.py.

◆ td_bootstrap_image

framework.test_app.client_app.KubernetesClientRunner.td_bootstrap_image

Definition at line 238 of file client_app.py.

◆ xds_server_uri

framework.test_app.client_app.KubernetesClientRunner.xds_server_uri

Definition at line 239 of file client_app.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10