Skip to content

Commit 2d436f1

Browse files
committed
Fix csi-snapshotter RBAC yaml version
Signed-off-by: Grant Griffiths <[email protected]>
1 parent 152396e commit 2d436f1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

prow.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,15 +1066,21 @@ main () {
10661066
docker tag "$i:latest" "$i:csiprow" || die "tagging the locally built container image for $i failed"
10671067
done
10681068

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
10701070
# This is one of those components which has its own RBAC rules (like external-provisioner).
10711071
# We are testing a locally built image and also want to test with the the current,
10721072
# potentially modified RBAC rules.
1073+
1074+
# snapshot-controller RBAC is handled by the cluster manager
1075+
cmds=${cmds//snapshot-controller/}
10731076
if [ "$(echo "$cmds" | wc -w)" != 1 ]; then
10741077
die "ambiguous deploy/kubernetes/rbac.yaml: need exactly one command, got: $cmds"
10751078
fi
10761079
e=$(echo "$cmds" | tr '[:lower:]' '[:upper:]' | tr - _)
10771080
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
10781084
fi
10791085
fi
10801086

0 commit comments

Comments
 (0)