fix: escape shell expansion in kubeadm helper scripts
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
This commit is contained in:
@@ -92,7 +92,7 @@ in
|
||||
domain="${config.terrahome.kubeadm.clusterDomain}"
|
||||
|
||||
local_ip_cidr=$(ip -4 -o addr show dev "$iface" | awk 'NR==1 {print $4}')
|
||||
if [ -z "${local_ip_cidr:-}" ]; then
|
||||
if [ -z "''${local_ip_cidr:-}" ]; then
|
||||
echo "Could not determine IPv4 CIDR on interface $iface"
|
||||
exit 1
|
||||
fi
|
||||
@@ -142,7 +142,7 @@ in
|
||||
iface="${config.terrahome.kubeadm.controlPlaneInterface}"
|
||||
suffix="${toString config.terrahome.kubeadm.controlPlaneVipSuffix}"
|
||||
local_ip_cidr=$(ip -4 -o addr show dev "$iface" | awk 'NR==1 {print $4}')
|
||||
if [ -z "${local_ip_cidr:-}" ]; then
|
||||
if [ -z "''${local_ip_cidr:-}" ]; then
|
||||
echo "Could not determine IPv4 CIDR on interface $iface"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user