Skip to content

Commit

Permalink
fix(scripts): Prefix-strip for correct cluster selection. (#16488)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
AndesKrrrrrrrrrrr and kodiakhq[bot] authored Oct 22, 2024
1 parent 1b1edbe commit 1a9f3cb
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 1a9f3cb

Please sign in to comment.