Skip to content

Commit

Permalink
fix: use getBrokerLabels correctly
Browse files Browse the repository at this point in the history
the function returns already the -l and the related name, which shouldn't be quoted otherwise the command will not work
  • Loading branch information
ChrisKujawa committed Aug 3, 2022
1 parent b9f0d6a commit 1d5b5be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chaos-workers/chaos-experiments/scripts/apply_net_admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1d5b5be

Please sign in to comment.