From 62ee0f5a1aba1ca637495b1610fb84c103ba45f2 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Mon, 5 Oct 2020 19:18:48 +0200 Subject: [PATCH] Update cluster/gce/util.sh Co-authored-by: Aaron Crickenberger --- cluster/gce/util.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index f4a41fbd00c..598c569b621 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -1594,8 +1594,7 @@ function create-certs { local -r primary_cn="${1}" # Determine extra certificate names for master - local octets - kube::util::read-array octets < <(echo "${SERVICE_CLUSTER_IP_RANGE}" | sed -e 's|/.*||' -e 's/\./ /g') + local octets=($(echo "${SERVICE_CLUSTER_IP_RANGE}" | sed -e 's|/.*||' -e 's/\./ /g')) ((octets[3]+=1)) local -r service_ip=$(echo "${octets[*]}" | sed 's/ /./g') local sans="" @@ -2063,7 +2062,7 @@ function create-node-template() { local local_ssds=() local_ssd_ext_count=0 - if [[ -n ${NODE_LOCAL_SSDS_EXT:-} ]]; then + if [[ -n "${NODE_LOCAL_SSDS_EXT:-}" ]]; then IFS=";" read -r -a ssdgroups <<< "${NODE_LOCAL_SSDS_EXT:-}" for ssdgroup in "${ssdgroups[@]}" do