Skip to content

Commit

Permalink
remove -p
Browse files Browse the repository at this point in the history
  • Loading branch information
RidRisR committed Sep 2, 2024
1 parent 53540b6 commit 3c6d99e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions hack/local-up-operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Usage: local-up-operator.sh [-hd] [-p PROVIDER]
-h Show this message and exit
-i Install dependencies only
-p Specify the Kubernetes provider (kind or k3s). Defaults to kind.
Environments:
Expand All @@ -45,31 +44,14 @@ Environments:
EOF
}

# Parse command-line arguments
while getopts "hip:" opt; do
case ${opt} in
p)
PROVIDER=${OPTARG}
;;
*)
usage
exit 1
;;
esac
done

shift $((OPTIND - 1))

# Determine the appropriate script based on the provider
case "$PROVIDER" in
kind)
echo "Running with kind provider..."
# Call the script for kind provider (replace with actual path if needed)
bash hack/local-up-by-kind.sh "$@"
;;
k3s)
echo "Running with k3s provider..."
# Call the script for k3s provider (replace with actual path if needed)
bash hack/local-up-by-k3s.sh "$@"
;;
*)
Expand Down

0 comments on commit 3c6d99e

Please sign in to comment.