Compare commits

..

3 Commits

Author SHA1 Message Date
fc58941ad1
Added more krew plugins
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-12-14 15:53:57 +00:00
1cfabac2f5
Fix login fallback
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-12-14 15:53:44 +00:00
d0556dc92f
Cleaned up pre-flight checks
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-12-14 08:24:18 +00:00
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ if [ $? -eq 0 ]; then
exit 1
else
echo "Cleaning up any old awsclusterroleidentities..."
kubectl get --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME} >/dev/null && kubectl delete --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME}
kubectl delete --namespace ${PREFIXED_NAMESPACE} awsclusterroleidentities ${NAME} 2>/dev/null
fi
echo "✨ Creating an ${PROVIDER} cluster called '${NAMESPACE}/${NAME}' with release '${RELEASE}'"

View File

@ -61,7 +61,7 @@ MC_EXIST=$(kubectl config get-contexts --no-headers -o name gs-${POS_ARGS[0]} 2>
case ${#POS_ARGS[@]} in
1)
kubectl config delete-context gs-${POS_ARGS[0]} &>/dev/null
kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} || opsctl create kubeconfig ${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)
if [ ${MC_EXIST} -eq 0 ]; then gs-login ${POS_ARGS[0]}; fi

View File

@ -32,7 +32,7 @@ BREW_TOOLS=(
)
CARGO_TOOLS=( macchina bottom )
NODE_TOOLS=( git-split-diffs )
KREW_TOOLS=( gs )
KREW_TOOLS=( gs outdated tree )
echo "🔵 Installing / updating tools"