Update createServiceAccount.sh
All checks were successful
Build docker container / Build image (push) Successful in 13s
All checks were successful
Build docker container / Build image (push) Successful in 13s
This commit is contained in:
parent
0fd1839ca5
commit
e5cb2c0c4f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user