Skip to content

Commit 84831c2

Browse files
committed
hack enable vgs
1 parent c145f79 commit 84831c2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

release-tools/prow.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)