mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
ci: adjust the snapshot to enable vgs
updating the snapshot container ARG to enable the vgs feature. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
a17fef07e6
commit
eb66ec8177
@ -78,12 +78,12 @@ function create_or_delete_resource() {
|
|||||||
|
|
||||||
if [ "${operation}" == "create" ]; then
|
if [ "${operation}" == "create" ]; then
|
||||||
# Argument to add/update
|
# 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
|
# 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
|
if grep -q -E "^\s+-\s+--feature-gates=CSIVolumeGroupSnapshot=false" "${temp_snap_controller}"; then
|
||||||
sed -i -E "s/^\s+-\s+--enable-volume-group-snapshots=false$/ - $ARGUMENT/" "${temp_snap_controller}"
|
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
|
# 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."
|
echo "Argument already present and matching."
|
||||||
else
|
else
|
||||||
# Add the argument if it's not present
|
# Add the argument if it's not present
|
||||||
|
Loading…
Reference in New Issue
Block a user