diff --git a/createServiceAccount.sh b/createServiceAccount.sh index bcac653..eaf2523 100644 --- a/createServiceAccount.sh +++ b/createServiceAccount.sh @@ -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 <