File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1066,15 +1066,21 @@ main () {
1066
1066
docker tag " $i :latest" " $i :csiprow" || die " tagging the locally built container image for $i failed"
1067
1067
done
1068
1068
1069
- if [ -e deploy/kubernetes/rbac.yaml ]; then
1069
+ if [ -e " deploy/kubernetes/rbac.yaml" ] || [ -e " deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml " ]; then
1070
1070
# This is one of those components which has its own RBAC rules (like external-provisioner).
1071
1071
# We are testing a locally built image and also want to test with the the current,
1072
1072
# potentially modified RBAC rules.
1073
+
1074
+ # snapshot-controller RBAC is handled by the cluster manager
1075
+ cmds=${cmds// snapshot-controller/ }
1073
1076
if [ " $( echo " $cmds " | wc -w) " != 1 ]; then
1074
1077
die " ambiguous deploy/kubernetes/rbac.yaml: need exactly one command, got: $cmds "
1075
1078
fi
1076
1079
e=$( echo " $cmds " | tr ' [:lower:]' ' [:upper:]' | tr - _)
1077
1080
images=" $images ${e} _RBAC=$( pwd) /deploy/kubernetes/rbac.yaml"
1081
+ if [ -e " deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml" ]; then
1082
+ images=" $images ${e} _RBAC=$( pwd) /deploy/kubernetes/csi-snapshotter/rbac-csi-snapshotter.yaml"
1083
+ fi
1078
1084
fi
1079
1085
fi
1080
1086
You can’t perform that action at this time.
0 commit comments