File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ while [ -n "${1-}" ]; do
44
44
esac
45
45
done
46
46
47
- if [ " ${DEPLOY_VERSION} " =~ ' ^(?! noauth).* ' ]; then
47
+ if [[ ! " ${DEPLOY_VERSION} " == * noauth* ] ]; then
48
48
ensure_var GCE_PD_SA_DIR
49
49
fi
50
50
@@ -74,7 +74,7 @@ function check_service_account()
74
74
75
75
ensure_kustomize
76
76
77
- if [ " $skip_sa_check " != true -a " ${DEPLOY_VERSION} " =~ ' ^(?! noauth).* ' ]; then
77
+ if [[ " $skip_sa_check " != true ]] && [[ ! " ${DEPLOY_VERSION} " == * noauth* ] ]; then
78
78
check_service_account
79
79
fi
80
80
83
83
${KUBECTL} create namespace " ${NAMESPACE} " -v=" ${VERBOSITY} "
84
84
fi
85
85
86
- if [ " ${DEPLOY_VERSION} " =~ ' ^(?! noauth).* ' ]; then
86
+ if [[ ! " ${DEPLOY_VERSION} " == * noauth* ] ]; then
87
87
if ! ${KUBECTL} get secret cloud-sa -v=" ${VERBOSITY} " -n " ${NAMESPACE} " ;
88
88
then
89
89
${KUBECTL} create secret generic cloud-sa -v=" ${VERBOSITY} " --from-file=" ${GCE_PD_SA_DIR} /cloud-sa.json" -n " ${NAMESPACE} "
You can’t perform that action at this time.
0 commit comments