Skip to content

Commit

Permalink
Prefix-strip for correct cluster selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndesKrrrrrrrrrrr committed Oct 21, 2024
1 parent afc168b commit 693f8dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/run-proxies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ if [[ -n "${DEBUG:-}" || -n "${CI:-}" ]]; then set -x; fi
CONTEXT="$(kubectl config get-contexts -o name | grep -o ".*:cluster/${AWS_PROFILE##islandis-}-cluster.*")"
kubectl config use-context "${CONTEXT}" >&2
kubectl config current-context | sed 's/.*\///' >/dev/null
echo "${CONTEXT}"
# Strip loading ARN role, region, etc.
echo "${CONTEXT##*/}"
)"}"

echo "AWS_PROFILE=${AWS_PROFILE}" >&2
echo "CLUSTER=$CLUSTER" >&2
echo "CLUSTER=${CLUSTER}" >&2

ARGS=()
PROXIES=()
Expand Down

0 comments on commit 693f8dd

Please sign in to comment.