Skip to content

Commit 2fc24e1

Browse files
scripts: fix a bug where the get pod names did not use the namespace and context from args
1 parent 99612c1 commit 2fc24e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/prod/update_config_and_restart_nodes_lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ def restart_pod(
484484
"-o",
485485
"name",
486486
]
487+
kubectl_args.extend(get_namespace_args(namespace, cluster))
487488
pods = run_kubectl_command(kubectl_args, capture_output=True).stdout.splitlines()
488489

489490
# Filter the list of pods to only include the ones that match the service and extract the pod name.

0 commit comments

Comments
 (0)