Commit 9edc359d authored by Robert Bailey's avatar Robert Bailey

Fix an unbound variable error when CA_CERT isn't set.

parent 9d6c0329
...@@ -362,7 +362,7 @@ EOF ...@@ -362,7 +362,7 @@ EOF
kube_proxy_kubeconfig_file="/srv/salt-overlay/salt/kube-proxy/kubeconfig" kube_proxy_kubeconfig_file="/srv/salt-overlay/salt/kube-proxy/kubeconfig"
if [ ! -e "${kube_proxy_kubeconfig_file}" ]; then if [ ! -e "${kube_proxy_kubeconfig_file}" ]; then
mkdir -p /srv/salt-overlay/salt/kube-proxy mkdir -p /srv/salt-overlay/salt/kube-proxy
if [[ ! -z "${CA_CERT}" ]]; then if [[ ! -z "${CA_CERT:-}" ]]; then
(umask 077; (umask 077;
cat > "${kube_proxy_kubeconfig_file}" <<EOF cat > "${kube_proxy_kubeconfig_file}" <<EOF
apiVersion: v1 apiVersion: v1
......
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