Compare commits

...

2 Commits

Author SHA1 Message Date
c991af3e0f
Added auto update and tab completion for GS utils
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-15 07:53:44 +01:00
f363cabe84
Ensure AWS_PROFILE is unset
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-07-15 07:51:06 +01:00
2 changed files with 9 additions and 0 deletions

View File

@ -64,6 +64,8 @@ if [ -z $MFA ] || [ -z $MFA_ARN ]; then
exit 1
fi
unset AWS_PROFILE
printf "✨ Getting session credentials..."
SESSION_JSON=$(aws sts get-session-token --serial-number ${MFA_ARN} --token-code ${MFA})
printf "\n\e[1A\e[K✅ Got session credentials\n"

View File

@ -0,0 +1,7 @@
# Giant Swarm utils
which opsctl &>/dev/null && screen -dm bash -c 'opsctl version update'
which devctl &>/dev/null && screen -dm bash -c 'devctl version update'
which kubectl-gs &>/dev/null && screen -dm bash -c 'kubectl-gs selfupdate'
which opsctl &>/dev/null && opsctl completion zsh > /usr/local/share/zsh/site-functions/_opsctl
which devctl &>/dev/null && devctl completion zsh > /usr/local/share/zsh/site-functions/_devctl
rm -f ~/.zcompdump; compinit