Skip to content

Commit f684e60

Browse files
committed
WIP2
1 parent bec165e commit f684e60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/util/deploy-hostpath.sh

+4
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ echo "applying RBAC rules"
100100
for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER; do
101101
eval current="\${${component}_RBAC}"
102102
eval original="\${${component}_RBAC_YAML}"
103+
if [ ! -e "$current" ]; then
104+
echo "File $current not found, skipping"
105+
continue
106+
fi
103107
if [ "$current" != "$original" ]; then
104108
echo "Using non-default RBAC rules for $component. Changes from $original to $current are:"
105109
diff -c <(wget --quiet -O - "$original") <(if [[ "$current" =~ ^http ]]; then wget --quiet -O - "$current"; else cat "$current"; fi) || true

0 commit comments

Comments
 (0)