Skip to content

Commit

Permalink
xds-k8s: Fix error: serviceAccountName Invalid value: None (grpc#27218)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk authored Sep 1, 2021
1 parent 7f8aeed commit 405cb0b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self,
reuse_namespace=False,
namespace_template=None,
debug_use_port_forwarding=False,
enable_workload_identity=False):
enable_workload_identity=True):
super().__init__(k8s_namespace, namespace_template, reuse_namespace)

# Settings
Expand Down Expand Up @@ -251,6 +251,9 @@ def run(self,
isinstance(maintenance_port, int)):
raise TypeError('Port numbers must be integer')

if secure_mode and not self.enable_workload_identity:
raise ValueError('Secure mode requires Workload Identity enabled.')

logger.info(
'Deploying xDS test server "%s" to k8s namespace %s: test_port=%s '
'maintenance_port=%s secure_mode=%s server_id=%s replica_count=%s',
Expand Down

0 comments on commit 405cb0b

Please sign in to comment.