in cli/gke_check.py [0:0]
def _get_helm_env_vars(self):
# Only set N_NODES if nodes are specified (otherwise uses all nodes)
additional_helm_env_vars: dict[str, str] | None = None
# If nodes are not specified, then the health runner will use all nodes
if self.nodes:
n_nodes = len(self.nodes)
additional_helm_env_vars: dict[str, str] = {
f'health_checks.{self.name}_healthcheck.env.N_NODES': str(n_nodes),
}
return additional_helm_env_vars