Commit c3fd33a1 authored by Mike Danese's avatar Mike Danese

fix test with array expansion

parent 0e10fac3
...@@ -80,8 +80,8 @@ function create-kubeconfig() { ...@@ -80,8 +80,8 @@ function create-kubeconfig() {
fi fi
"${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}" "${kubectl}" config set-cluster "${CONTEXT}" "${cluster_args[@]}"
if [ -n "${user_args[@]:-}" ]; then if [[ -n "${user_args[@]:-}" ]]; then
"${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}" "${kubectl}" config set-credentials "${CONTEXT}" "${user_args[@]}"
fi fi
"${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}" "${kubectl}" config set-context "${CONTEXT}" --cluster="${CONTEXT}" --user="${CONTEXT}"
"${kubectl}" config use-context "${CONTEXT}" --cluster="${CONTEXT}" "${kubectl}" config use-context "${CONTEXT}" --cluster="${CONTEXT}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment