File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ list_api_groups () (
564564 echo ' "api/ga": "true"'
565565 echo ' "storage.k8s.io/v1alpha1": "true"'
566566 echo ' "storage.k8s.io/v1beta1": "true"'
567- echo ' "storage.k8s.io/v1beta2": "true"'
567+ # echo ' "storage.k8s.io/v1beta2": "true"'
568568 fi
569569
570570 # Ignore: Double quote to prevent globbing and word splitting.
@@ -1382,11 +1382,18 @@ main () {
13821382
13831383 # Temporarily hack will handle it in e2e golang codes later
13841384 if ${CSI_PROW_ENABLE_GROUP_SNAPSHOT} ; then
1385- kubectl patch sts csi-hostpathplugin -n default --type=' json' -p=' [{
1386- "op": "add",
1387- "path": "/spec/template/spec/containers/5/args/-",
1388- "value": "--feature-gates=CSIVolumeGroupSnapshot=true"
1389- }]'
1385+ index=$( kubectl get sts csi-hostpathplugin -n default -o json \
1386+ | jq -r ' .spec.template.spec.containers
1387+ | to_entries[]
1388+ | select(.value.name=="csi-snapshotter")
1389+ | .key' )
1390+
1391+ kubectl patch sts csi-hostpathplugin -n default --type=' json' \
1392+ -p=" [{
1393+ \" op\" : \" add\" ,
1394+ \" path\" : \" /spec/template/spec/containers/$index /args/-\" ,
1395+ \" value\" : \" --feature-gates=CSIVolumeGroupSnapshot=true\"
1396+ }]"
13901397 kubectl rollout status sts/csi-hostpathplugin -n default
13911398 fi
13921399
You can’t perform that action at this time.
0 commit comments