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>
This commit is contained in:
Travis Nielsen committed 2022-09-13 11:26:51 -06:00
1 parent 5fce56b596
commit 839920ff80
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