Ensure new context used each login

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-03-01 11:49:13 +00:00
parent 0ab4e25456
commit dfba592831
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
1 changed files with 1 additions and 0 deletions

View File

@ -58,6 +58,7 @@ case ${#POS_ARGS[@]} in
exit 1
;;
*)
kubectl config delete-context gs-${POS_ARGS[0]} &>/dev/null
opsctl login ${DEBUG} ${POS_ARGS[@]}
;;
esac