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 () (
564
564
echo ' "api/ga": "true"'
565
565
echo ' "storage.k8s.io/v1alpha1": "true"'
566
566
echo ' "storage.k8s.io/v1beta1": "true"'
567
- echo ' "storage.k8s.io/v1beta2": "true"'
567
+ # echo ' "storage.k8s.io/v1beta2": "true"'
568
568
fi
569
569
570
570
# Ignore: Double quote to prevent globbing and word splitting.
@@ -1382,11 +1382,18 @@ main () {
1382
1382
1383
1383
# Temporarily hack will handle it in e2e golang codes later
1384
1384
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
+ }]"
1390
1397
kubectl rollout status sts/csi-hostpathplugin -n default
1391
1398
fi
1392
1399
You can’t perform that action at this time.
0 commit comments