Skip to content

Commit a21bbb0

Browse files
committed
Fix resize test failure: replaced snapshotter and resizer RBAC namespace; enable resize tests against latest
1 parent 01b0034 commit a21bbb0

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

deploy/kubernetes/overlays/alpha/kustomization.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ patchesJson6902:
1515
resources:
1616
- rbac_add_snapshotter.yaml
1717
- rbac_add_resizer.yaml
18+
19+
# Reapplying namespace transformer to include newly added RBAC rules.
20+
namespace:
21+
gce-pd-csi-driver

deploy/kubernetes/overlays/alpha/rbac_add_resizer.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ metadata:
2525
subjects:
2626
- kind: ServiceAccount
2727
name: csi-controller-sa
28-
namespace: default
2928
roleRef:
3029
kind: ClusterRole
3130
name: external-resizer-role

deploy/kubernetes/overlays/alpha/rbac_add_snapshotter.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ metadata:
4242
subjects:
4343
- kind: ServiceAccount
4444
name: csi-controller-sa
45-
namespace: default
4645
roleRef:
4746
kind: ClusterRole
4847
name: external-snapshotter-role

test/k8s-integration/config/test-config-template.in

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ DriverInfo:
1717
fsGroup: true
1818
exec: true
1919
block: true
20+
controllerExpansion: true
21+
nodeExpansion: true
2022
# dataSource: true
2123
# RWX: true
2224
SupportedMountOption:

test/run-k8s-integration.sh

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export GCE_PD_VERBOSITY=9
2323
make -C ${PKGDIR} test-k8s-integration
2424

2525
base_cmd="${PKGDIR}/bin/k8s-integration-test \
26+
--kube-feature-gates=\"ExpandCSIVolumes=true\"
2627
--run-in-prow=true --deploy-overlay-name=${overlay_name} --service-account-file=${E2E_GOOGLE_APPLICATION_CREDENTIALS} \
2728
--do-driver-build=${do_driver_build} --boskos-resource-type=${boskos_resource_type} \
2829
--storageclass-file=sc-standard.yaml --test-focus="External.Storage" --gce-zone="us-central1-b" \

0 commit comments

Comments
 (0)