Skip to content

Commit

Permalink
fix: remove quotes
Browse files Browse the repository at this point in the history
Quoting the function call caused to break the command execution, removing the quotes should solve it.
  • Loading branch information
ChrisKujawa committed Feb 11, 2022
1 parent 62f052c commit e3d2ce6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chaos-workers/chaos-experiments/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function runOnAllBrokers()
{
namespace=$(getNamespace)

pods=$(kubectl get pod -n "$namespace" "$(getBrokerLabels)" -o jsonpath="{.items[*].metadata.name}")
pods=$(kubectl get pod -n "$namespace" $(getBrokerLabels) -o jsonpath="{.items[*].metadata.name}")

set +e
for pod in $pods
Expand All @@ -53,15 +53,15 @@ function getBroker()
index=${1:-0}

namespace=$(getNamespace)
pod=$(kubectl get pod -n "$namespace" "$(getBrokerLabels)" -o jsonpath="{.items[$index].metadata.name}")
pod=$(kubectl get pod -n "$namespace" $(getBrokerLabels) -o jsonpath="{.items[$index].metadata.name}")

echo "$pod"
}

function getGateway()
{
namespace=$(getNamespace)
pod=$(kubectl get pod -n "$namespace" "$(getGatewayLabels)" -o jsonpath="{.items[0].metadata.name}")
pod=$(kubectl get pod -n "$namespace" $(getGatewayLabels) -o jsonpath="{.items[0].metadata.name}")

echo "$pod"
}
Expand Down

0 comments on commit e3d2ce6

Please sign in to comment.