Skip to content

Commit

Permalink
updated kubectl_run_sa.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Feb 18, 2024
1 parent 366b9bf commit 233903c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kubernetes/kubectl_run_sa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ image="${2:-busybox}"
shift || :
shift || :

name="${image##*/}-${USER:-$(whoami)}"
name="${image##*/}"
name="${name%%:*}"
name+="-${USER:-$(whoami)}"

run_static_pod "$name" "$image" --overrides="{ \"spec\": { \"serviceAccount\": \"$service_account\" } }" "$@"

0 comments on commit 233903c

Please sign in to comment.