From eb66ec8177699c36323f886c93816ffc528d8e3b Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Thu, 12 Dec 2024 13:32:14 +0100 Subject: [PATCH] ci: adjust the snapshot to enable vgs updating the snapshot container ARG to enable the vgs feature. Signed-off-by: Madhu Rajanna --- scripts/install-snapshot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install-snapshot.sh b/scripts/install-snapshot.sh index 2f0b12b5d..acd025761 100755 --- a/scripts/install-snapshot.sh +++ b/scripts/install-snapshot.sh @@ -78,12 +78,12 @@ function create_or_delete_resource() { if [ "${operation}" == "create" ]; then # Argument to add/update - ARGUMENT="--enable-volume-group-snapshots=true" + ARGUMENT="--feature-gates=CSIVolumeGroupSnapshot=true" # Check if the argument is already present and set to false - if grep -q -E "^\s+-\s+--enable-volume-group-snapshots=false" "${temp_snap_controller}"; then - sed -i -E "s/^\s+-\s+--enable-volume-group-snapshots=false$/ - $ARGUMENT/" "${temp_snap_controller}" + if grep -q -E "^\s+-\s+--feature-gates=CSIVolumeGroupSnapshot=false" "${temp_snap_controller}"; then + sed -i -E "s/^\s+-\s+----feature-gates=CSIVolumeGroupSnapshot=false$/ - $ARGUMENT/" "${temp_snap_controller}" # Check if the argument is already present and set to true - elif grep -q -E "^\s+-\s+--enable-volume-group-snapshots=true" "${temp_snap_controller}"; then + elif grep -q -E "^\s+-\s+--feature-gates=CSIVolumeGroupSnapshot=true" "${temp_snap_controller}"; then echo "Argument already present and matching." else # Add the argument if it's not present