Update createServiceAccount.sh
All checks were successful
Build docker container / Build image (push) Successful in 13s

This commit is contained in:
ties 2024-09-06 10:46:58 +00:00
parent 0fd1839ca5
commit e5cb2c0c4f

View File

@ -53,6 +53,9 @@ EOF
echo "$resources" | while IFS= read -r resource; do
apiGroup=$(echo "$resource" | jq -r '.apiVersion' | awk -F'/' '{print $1}')
kind=$(echo "$resource" | jq -r '.kind' | tr '[:upper:]' '[:lower:]')
if [[ $apiGroup == "v1" ]]; then
apiGroup=""
fi
# Append rule for the current resource
cat <<EOF