Skip to content

Commit 09da02c

Browse files
AlbinB97rarescosma
authored andcommitted
scripts: fix update-ips script to allow subnet for elastx + capi
1 parent 12d5ff7 commit 09da02c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/update-ips.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,9 @@ allow_subnet() {
521521

522522
# Allowing the subnet is currently only supported for clusters setup with
523523
# CAPI on OpenStack. Fallback on allowing individual nodes otherwise.
524-
if [ "$(yq_read "${cluster}" '.global.ck8sK8sInstaller' "")" != "capi" ] || [ "$(yq_read "${cluster}" '.global.ck8sCloudProvider' "")" != "openstack" ]; then
524+
if [ "$(yq_read "${cluster}" '.global.ck8sK8sInstaller' "")" != "capi" ] ||
525+
{ [ "$(yq_read "${cluster}" '.global.ck8sCloudProvider' "")" != "openstack" ] &&
526+
[ "$(yq_read "${cluster}" '.global.ck8sCloudProvider' "")" != "elastx" ]; }; then
525527
allow_nodes "${cluster}" "${config_option}" "${label}"
526528
return
527529
fi

0 commit comments

Comments
 (0)