added service account to Network Chaos NG workload (#870)
Functional & Unit Tests / Functional & Unit Tests (push) Failing after 8m56s
Functional & Unit Tests / Generate Coverage Badge (push) Has been skipped

Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com>
This commit is contained in:
Tullio Sebastiani
2025-07-23 10:17:50 +02:00
committed by GitHub
parent c125e5acf7
commit fff675f3dd
5 changed files with 8 additions and 1 deletions
@@ -14,6 +14,7 @@ class BaseNetworkChaosConfig:
wait_duration: int
test_duration: int
label_selector: str
service_account: str
instance_count: int
execution: str
namespace: str
@@ -4,6 +4,9 @@ metadata:
name: {{pod_name}}
namespace: {{namespace}}
spec:
{% if service_account %}
serviceAccountName: {{ service_account }}
{%endif%}
{% if host_network %}
hostNetwork: true
{%endif%}
@@ -87,7 +87,8 @@ def deploy_network_filter_pod(
target=target_node,
container_name=container_name,
workload_image=config.image,
taints=tolerations
taints=tolerations,
service_account=config.service_account
)
)
+1
View File
@@ -3,6 +3,7 @@
wait_duration: 1
test_duration: 10
label_selector: "<node_selector>"
service_account: ""
taints: [] # example ["node-role.kubernetes.io/master:NoSchedule"]
namespace: 'default'
instance_count: 1
+1
View File
@@ -3,6 +3,7 @@
wait_duration: 1
test_duration: 60
label_selector: "<pod_selector>"
service_account: ""
taints: [] # example ["node-role.kubernetes.io/master:NoSchedule"]
namespace: 'default'
instance_count: 1