From 1d5b5be00bf69b62414ccfac44b4086c59d92ee6 Mon Sep 17 00:00:00 2001 From: Christopher Zell Date: Wed, 3 Aug 2022 10:00:20 +0200 Subject: [PATCH] fix: use getBrokerLabels correctly the function returns already the -l and the related name, which shouldn't be quoted otherwise the command will not work --- chaos-workers/chaos-experiments/scripts/apply_net_admin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chaos-workers/chaos-experiments/scripts/apply_net_admin.sh b/chaos-workers/chaos-experiments/scripts/apply_net_admin.sh index ccd05905d..be0738a07 100755 --- a/chaos-workers/chaos-experiments/scripts/apply_net_admin.sh +++ b/chaos-workers/chaos-experiments/scripts/apply_net_admin.sh @@ -10,4 +10,6 @@ CLUSTERID=${namespace%-zeebe} kubectl patch zb "$CLUSTERID" --type merge --patch='{"spec":{"controller":{"reconcileDisabled":true}}}' kubectl patch statefulset zeebe -n "$namespace" --patch "$(cat "$scriptPath/net_admin_patch.yaml")" -kubectl delete pod -l "$(getBrokerLabels)" + +# shellcheck disable=SC2046 +kubectl delete pod $(getBrokerLabels)