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() {
924
924
kubectl apply -f - || die " failed to deploy snapshot-controller with feature gate"
925
925
else
926
926
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"
928
932
fi
929
933
fi
930
934
@@ -1432,11 +1436,12 @@ main () {
1432
1436
# Install necessary snapshot CRDs and snapshot controller
1433
1437
install_snapshot_crds
1434
1438
install_snapshot_controller
1439
+ install_volumegroupsnapshot_crds
1435
1440
1436
1441
# 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
1440
1445
1441
1446
1442
1447
# Installing the driver might be disabled.
You can’t perform that action at this time.
0 commit comments