Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/templates/hive-csv-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ spec:
spec:
clusterPermissions:
- serviceAccountName: hive-operator
# Rules will be added here by the bundle-gen.py script.
# Rules will be added here by the bundle-gen.sh script.
deployments:
- name: hive-operator
# Deployment spec will be added here by the bundle-gen.py script.
# Deployment spec will be added here by the bundle-gen.sh script.
customresourcedefinitions:
owned:
- description: Configuration for the Hive Operator
Expand Down
17 changes: 9 additions & 8 deletions hack/app-sre/generate-saas-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,20 @@ Parameters:
EOF
}

# Check for help flag or incorrect number of arguments
if [ $# -ne 3 ]; then
usage
exit 1
fi

# Check for help flag
for arg in "$@"; do
if [[ "$arg" == *"-h"* ]]; then
if [[ "$arg" == "-h" || "$arg" == "--help" ]]; then
usage
exit 1
exit 0
fi
done

# Check for incorrect number of arguments
if [ $# -ne 3 ]; then
usage
exit 1
fi

saas_template_stub="$1"
saas_object_file="$2"
out_file="$3"
Expand Down
Loading