Skip to content

Commit eafaa37

Browse files
committed
Do not create snapshot metadata rbac by default
Signed-off-by: Prasad Ghangal <[email protected]>
1 parent 80c7ebe commit eafaa37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deploy/util/deploy-hostpath.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ run () {
190190

191191
# rbac rules
192192
echo "applying RBAC rules"
193-
for component in CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER CSI_EXTERNALHEALTH_MONITOR CSI_SNAPSHOT_METADATA; do
193+
components=(CSI_PROVISIONER CSI_ATTACHER CSI_SNAPSHOTTER CSI_RESIZER CSI_EXTERNALHEALTH_MONITOR)
194+
if snapshot_metadata; then
195+
components+=(CSI_SNAPSHOT_METADATA)
196+
fi
197+
for component in "${components[@]}"; do
194198
eval current="\${${component}_RBAC}"
195199
eval original="\${${component}_RBAC_YAML}"
196200
if [ "$current" != "$original" ]; then

0 commit comments

Comments
 (0)