From 927cf87bae565b241690e501d5bcd2f4065600e8 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 7 Dec 2021 13:04:19 +0000 Subject: [PATCH] MC login fallback if Dex down Signed-off-by: Marcus Noble --- home/.bin/gs-login | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.bin/gs-login b/home/.bin/gs-login index a5c444c..3648b59 100755 --- a/home/.bin/gs-login +++ b/home/.bin/gs-login @@ -56,7 +56,7 @@ done case ${#POS_ARGS[@]} in 1) - kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} + kubectl gs login ${POS_ARGS[0]} ${DEBUG} 2>/dev/null || opsctl kgs login -i ${POS_ARGS[0]} || opsctl create kubeconfig ${POS_ARGS[0]} ;; 2) kubectl gs login ${POS_ARGS[0]} --workload-cluster ${POS_ARGS[1]} --certificate-group ${CERTIFICATE_GROUP} --certificate-ttl ${TTL} ${DEBUG}