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