File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -924,7 +924,11 @@ install_snapshot_controller() {
924924 kubectl apply -f - || die " failed to deploy snapshot-controller with feature gate"
925925 else
926926 echo " kubectl apply -f $SNAPSHOT_CONTROLLER_YAML "
927- kubectl apply -f " $SNAPSHOT_CONTROLLER_YAML "
927+ #kubectl apply -f " $SNAPSHOT_CONTROLLER_YAML "
928+ echo " Deploying snapshot-controller with CSIVolumeGroupSnapshot feature gate enabled"
929+ curl -s " $SNAPSHOT_CONTROLLER_YAML " | \
930+ awk '/--leader-election=true/ {print; print " - \" --feature-gates=CSIVolumeGroupSnapshot=true\" " ; next}1' | \
931+ kubectl apply -f - || die " failed to deploy snapshot-controller with feature gate"
928932 fi
929933 fi
930934
@@ -1432,11 +1436,12 @@ main () {
14321436 # Install necessary snapshot CRDs and snapshot controller
14331437 install_snapshot_crds
14341438 install_snapshot_controller
1439+ install_volumegroupsnapshot_crds
14351440
14361441 # TODO: Remove the condition after the vgs GA
1437- if ${CSI_PROW_ENABLE_GROUP_SNAPSHOT} ; then
1438- install_volumegroupsnapshot_crds
1439- fi
1442+ # if ${CSI_PROW_ENABLE_GROUP_SNAPSHOT}; then
1443+ # install_volumegroupsnapshot_crds
1444+ # fi
14401445
14411446
14421447 # Installing the driver might be disabled.
You can’t perform that action at this time.
0 commit comments