build: stop printing verbose rbac generation details

The rbac generation prints a lot of info that is not necessary
unless troubleshooting the rbac build, so we can comment it
out by default.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 839920ff80)
This commit is contained in:
Travis Nielsen authored and Mergify committed 2022-09-13 18:27:26 +00:00
1 parent e5cfd812d8
commit 9f4e0a4b19
1 file changed
+3 -3
+3 -3
View File
@@ -41,10 +41,10 @@ while read -r line; do
done < <(find . -type f -name '*.yml' | sort)
# For debugging, output the resource kinds and names we processed and the number we are keeping
for file in "${RBAC_FILES[@]}"; do
#for file in "${RBAC_FILES[@]}"; do
# basename to get rid of the leading './' which find adds; %.yml to remove the .yml suffix
basename "${file%.yml}" >/dev/stderr
done
# basename "${file%.yml}" >/dev/stderr
#done
# shellcheck disable=SC2012 # we know filenames are alphanumeric from being k8s resources
echo "Number of RBAC resources: ${#RBAC_FILES[@]}" >/dev/stderr