Skip to content

Commit ace52b4

Browse files
committed
Changed from yq4 to just yq
1 parent f181704 commit ace52b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

migration/v2.28/prepare/40-disable-openstack-lb.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ if [[ "${CK8S_CLUSTER}" =~ ^(sc|both)$ ]]; then
1414
CONFIG_FILE="${CK8S_CONFIG_PATH}/sc-config/group_vars/k8s_cluster/ck8s-k8s-cluster-openstack.yaml"
1515

1616
# Check if the key exists and equals false
17-
if yq4 '.openstack_lbaas_enabled' "$CONFIG_FILE" | grep -q '^false$'; then
17+
if yq '.openstack_lbaas_enabled' "$CONFIG_FILE" | grep -q '^false$'; then
1818
# Delete old key
19-
yq4 -i 'del(.openstack_lbaas_enabled)' "$CONFIG_FILE"
19+
yq -i 'del(.openstack_lbaas_enabled)' "$CONFIG_FILE"
2020
# Add new key with same value
21-
yq4 -i '.external_openstack_lbaas_enabled = false' "$CONFIG_FILE"
21+
yq -i '.external_openstack_lbaas_enabled = false' "$CONFIG_FILE"
2222
fi
2323
fi
2424

@@ -28,10 +28,10 @@ if [[ "${CK8S_CLUSTER}" =~ ^(wc|both)$ ]]; then
2828
CONFIG_FILE="${CK8S_CONFIG_PATH}/wc-config/group_vars/k8s_cluster/ck8s-k8s-cluster-openstack.yaml"
2929

3030
# Check if the key exists and equals false
31-
if yq4 '.openstack_lbaas_enabled' "$CONFIG_FILE" | grep -q '^false$'; then
31+
if yq '.openstack_lbaas_enabled' "$CONFIG_FILE" | grep -q '^false$'; then
3232
# Delete old key
33-
yq4 -i 'del(.openstack_lbaas_enabled)' "$CONFIG_FILE"
33+
yq -i 'del(.openstack_lbaas_enabled)' "$CONFIG_FILE"
3434
# Add new key with same value
35-
yq4 -i '.external_openstack_lbaas_enabled = false' "$CONFIG_FILE"
35+
yq -i '.external_openstack_lbaas_enabled = false' "$CONFIG_FILE"
3636
fi
3737
fi

0 commit comments

Comments
 (0)