Skip to content

Commit

Permalink
fix: update platform version arg (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored May 13, 2023
1 parent f546f24 commit d19f744
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/glueops-platform/deploy-glueops-platform
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

deploy-glueops-platform() {
platform_version=""
version=""

# Parse flags
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
(-p|--platform-version)
platform_version="$2"
(-v|--version)
version="$2"
shift
shift
;;
(--help)
echo "Usage: deploy-glueops-platform [options]"
echo ""
echo "Options:"
echo " -p, --platform-version VALUE Set the version for GlueOps Platform to deploy"
echo " --help Show this help message and exit"
echo " -v, --version VALUE Set the version for GlueOps Platform to deploy"
echo " --help Show this help message and exit"
return
;;
(*)
Expand All @@ -28,16 +28,16 @@
done

# Check if version argument was provided
if [[ -z $platform_version ]]; then
echo "Platform version is required."
if [[ -z $version ]]; then
echo "Platform version (-v|--version) is required."
echo "Run 'deploy-glueops-platform --help' for usage information."
return
fi


helm repo add glueops-platform https://helm.gpkg.io/platform && \
helm repo update && \
helm install glueops-platform glueops-platform/glueops-platform --version $platform_version -f platform.yaml --namespace=glueops-core
helm install glueops-platform glueops-platform/glueops-platform --version $version -f platform.yaml --namespace=glueops-core
echo "--------------------------------------------------------------"
echo -e "🕑 \033[1;32mMonitoring GlueOps Platform installation will start in 2 seconds...\033[0m"
echo -e "👁️ We'll use the command: \033[1;34mkubectl get applications -n glueops-core\033[0m"
Expand Down

0 comments on commit d19f744

Please sign in to comment.