Skip to content

Commit

Permalink
fix: allow version pass to avoid latest install always (#8517)
Browse files Browse the repository at this point in the history
Signed-off-by: Amro Misbah <amromisba7@gmail.com>
Co-authored-by: Mohammad Abudayyeh <47318409+moabu@users.noreply.github.com>
  • Loading branch information
misba7 and moabu committed Jul 11, 2024
1 parent aa29413 commit 2bce686
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions automation/startjanssendemo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
set -eo pipefail
JANS_FQDN=$1
JANS_PERSISTENCE=$2
JANS_CI_CD_RUN=$3
JANS_VERSION=$3
EXT_IP=$4
INSTALL_ISTIO=$5
HELM_DEVELOPMENT_REPO=$6
JANS_CI_CD_RUN=$5
INSTALL_ISTIO=$6
if [[ ! "$JANS_FQDN" ]]; then
read -rp "Enter Hostname [demoexample.jans.io]: " JANS_FQDN
fi
Expand All @@ -21,9 +21,6 @@ if [[ $JANS_PERSISTENCE != "LDAP" ]] && [[ $JANS_PERSISTENCE != "MYSQL" ]] && [[
echo "[E] Incorrect entry. Please enter either LDAP, MYSQL or PGSQL"
exit 1
fi
if [[ ! "$HELM_DEVELOPMENT_REPO" ]]; then
HELM_DEVELOPMENT_REPO=""
fi

LOG_TARGET="FILE"
LOG_LEVEL="TRACE"
Expand Down Expand Up @@ -242,7 +239,7 @@ auth-server:
EOF
sudo helm repo add janssen https://docs.jans.io/charts
sudo helm repo update
sudo helm install janssen janssen/janssen -n jans -f override.yaml --kubeconfig="$KUBECONFIG" "$HELM_DEVELOPMENT_REPO"
sudo helm install janssen janssen/janssen -n jans -f override.yaml --kubeconfig="$KUBECONFIG" --version="$JANS_VERSION"

wait_for_services jans-config-api/api/v1/health/ready
wait_for_services jans-scim/sys/health-check
Expand Down

0 comments on commit 2bce686

Please sign in to comment.