MC login fallback if Dex down
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
622b9b16a8
commit
927cf87bae
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user