Compare commits

...

2 Commits

Author SHA1 Message Date
18bd3c0985
Updated gs-login to support new opsctl login
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-02-21 14:17:10 +00:00
99a1ef4575
Added jless install
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-02-21 14:16:52 +00:00
2 changed files with 3 additions and 5 deletions

View File

@ -60,12 +60,10 @@ MC_EXIST=$(kubectl config get-contexts --no-headers -o name gs-${POS_ARGS[0]} 2>
case ${#POS_ARGS[@]} in case ${#POS_ARGS[@]} in
1) 1)
kubectl config delete-context gs-${POS_ARGS[0]} &>/dev/null opsctl login ${DEBUG} ${POS_ARGS[0]}
kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} || opsctl create kubeconfig -i ${POS_ARGS[0]}
;; ;;
2) 2)
if [ ${MC_EXIST} -eq 0 ]; then gs-login ${POS_ARGS[0]}; fi opsctl login ${DEBUG} ${POS_ARGS[0]} ${POS_ARGS[1]}
kubectl gs login ${POS_ARGS[0]} --workload-cluster ${POS_ARGS[1]} --certificate-group ${CERTIFICATE_GROUP} --certificate-ttl ${TTL} ${DEBUG}
;; ;;
3) 3)
if [ ${MC_EXIST} -eq 0 ]; then gs-login ${POS_ARGS[0]}; fi if [ ${MC_EXIST} -eq 0 ]; then gs-login ${POS_ARGS[0]}; fi

View File

@ -29,7 +29,7 @@ BREW_TOOLS=(
git-delta go helm homebrew/cask-fonts/font-open-dyslexic-nerd-font htop jq kind krew git-delta go helm homebrew/cask-fonts/font-open-dyslexic-nerd-font htop jq kind krew
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault stats
tabby vale lastpass-cli tabby vale lastpass-cli jless
) )
CARGO_TOOLS=( macchina bottom ) CARGO_TOOLS=( macchina bottom )
NODE_TOOLS=( git-split-diffs ) NODE_TOOLS=( git-split-diffs )