Skip to content

Commit

Permalink
update IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
robinelastisys committed May 9, 2023
1 parent 52f1fdd commit e222481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/update-ips.bash
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ fi
## Add sc nodes ips to sc config
if [[ "${CHECK_CLUSTER}" =~ ^(sc|both)$ ]]; then
if [[ "${CK8S_CLOUD_PROVIDER}" =~ ^(citycloud|elastx)$ ]]; then
echo "Since your provider is either citycloud or elastx, you can choose to add the internal network(172.16.0.0/32) instead of specific IPs."
echo "Since your provider is either citycloud or elastx, you can choose to add the internal network(172.16.0.0/12) instead of specific IPs."
echo -n "- run? [y/N]: "
read -r reply
if [[ "${reply}" != "N" ]]; then
checkIfDiffAndUpdateKubectlIPs "sc" "" "172.16.0.0/32" "${config["override_sc"]}"
checkIfDiffAndUpdateKubectlIPs "sc" "" "172.16.0.0/12" "${config["override_sc"]}"
fi
else
checkIfDiffAndUpdateKubectlIPs "sc" "" ".networkPolicies.global.scNodes.ips" "${config["override_sc"]}"
Expand All @@ -250,11 +250,11 @@ fi
## Add wc nodes ips to wc config
if [[ "${CHECK_CLUSTER}" =~ ^(wc|both)$ ]]; then
if [[ "${CK8S_CLOUD_PROVIDER}" =~ ^(citycloud|elastx)$ ]]; then
echo "Since your provider is either citycloud or elastx, you can choose to add the internal network(172.16.0.0/32) instead of specific IPs."
echo "Since your provider is either citycloud or elastx, you can choose to add the internal network(172.16.0.0/12) instead of specific IPs."
echo -n "- run? [y/N]: "
read -r reply
if [[ "${reply}" != "N" ]]; then
checkIfDiffAndUpdateKubectlIPs "wc" "" "172.16.0.0/32" "${config["override_wc"]}"
checkIfDiffAndUpdateKubectlIPs "wc" "" "172.16.0.0/12" "${config["override_wc"]}"
fi
else
checkIfDiffAndUpdateKubectlIPs "wc" "" ".networkPolicies.global.wcNodes.ips" "${config["override_wc"]}"
Expand Down

0 comments on commit e222481

Please sign in to comment.