Skip to content
Merged
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
10 changes: 2 additions & 8 deletions .rhdh/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ EOF
rm -fr /tmp/"$CV"-unpacked
fi

# 1. install (or upgrade)
helm upgrade redhat-developer-hub -i "${CHART_URL}" --version "$CV"

# 2. collect values
PASSWORD=$(kubectl get secret redhat-developer-hub-postgresql -o jsonpath="{.data.password}" | base64 -d)
if [[ $(oc auth can-i get route/openshift-console) == "yes" ]]; then
CLUSTER_ROUTER_BASE=$(oc get route console -n openshift-console -o=jsonpath='{.spec.host}' | sed 's/^[^.]*\.//')
elif [[ -z $CLUSTER_ROUTER_BASE ]]; then
Expand All @@ -148,10 +143,9 @@ elif [[ -z $CLUSTER_ROUTER_BASE ]]; then
exit 1
fi

# 3. change values
# change values
helm upgrade redhat-developer-hub -i "${CHART_URL}" --version "$CV" \
--set global.clusterRouterBase="${CLUSTER_ROUTER_BASE}" \
--set global.postgresql.auth.password="$PASSWORD"
--set global.clusterRouterBase="${CLUSTER_ROUTER_BASE}"

echo "
While deploying you can watch at
Expand Down
Loading