Skip to content

Commit 223c577

Browse files
committed
feat(release-1.7): Ensure framework and MVP scenario works with RHDH v1.7
Signed-off-by: Pavel Macík <pavel.macik@gmail.com>
1 parent b9f0ba9 commit 223c577

File tree

9 files changed

+6
-367
lines changed

9 files changed

+6
-367
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export RHDH_IMAGE_TAG ?=
3232

3333
# RHDH Helm chart to deploy
3434
export RHDH_NAMESPACE ?= rhdh-performance
35-
export RHDH_HELM_REPO ?= https://raw.githubusercontent.com/rhdh-bot/openshift-helm-charts/rhdh-1.6-rhel-9/installation
35+
export RHDH_HELM_REPO ?= oci://quay.io/rhdh/chart
3636
export RHDH_HELM_CHART ?= redhat-developer-hub
3737
export RHDH_HELM_CHART_VERSION ?=
3838
export RHDH_HELM_RELEASE_NAME ?= rhdh

ci-scripts/rhdh-setup/deploy.sh

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export RHDH_IMAGE_REGISTRY=${RHDH_IMAGE_REGISTRY:-}
3636
export RHDH_IMAGE_REPO=${RHDH_IMAGE_REPO:-}
3737
export RHDH_IMAGE_TAG=${RHDH_IMAGE_TAG:-}
3838

39-
export RHDH_HELM_REPO=${RHDH_HELM_REPO:-https://raw.githubusercontent.com/rhdh-bot/openshift-helm-charts/rhdh-1.6-rhel-9/installation}
39+
export RHDH_HELM_REPO=${RHDH_HELM_REPO:-oci://quay.io/rhdh/chart}
4040
export RHDH_HELM_CHART=${RHDH_HELM_CHART:-redhat-developer-hub}
4141
export RHDH_HELM_CHART_VERSION=${RHDH_HELM_CHART_VERSION:-}
4242

@@ -309,19 +309,13 @@ backstage_install() {
309309

310310
# shellcheck disable=SC2016,SC1004
311311
install_rhdh_with_helm() {
312-
log_info "Removing old Helm repo ${repo_name}"
313-
helm repo remove "${repo_name}" || true
314-
log_info "Adding new Helm repo ${repo_name}: ${RHDH_HELM_REPO}"
315-
helm repo add "${repo_name}" "${RHDH_HELM_REPO}"
316-
log_info "Updating helm repo ${repo_name}"
317-
helm repo update "${repo_name}"
318312
chart_values=template/backstage/helm/chart-values.yaml
319313
if [ -n "${RHDH_IMAGE_REGISTRY}${RHDH_IMAGE_REPO}${RHDH_IMAGE_TAG}" ]; then
320314
echo "Using '$RHDH_IMAGE_REGISTRY/$RHDH_IMAGE_REPO:$RHDH_IMAGE_TAG' image for RHDH"
321315
chart_values=template/backstage/helm/chart-values.image-override.yaml
322316
fi
323317
version_arg=""
324-
chart_origin=$repo_name/$RHDH_HELM_CHART
318+
chart_origin=$RHDH_HELM_REPO
325319
if [ -n "${RHDH_HELM_CHART_VERSION}" ]; then
326320
version_arg="--version $RHDH_HELM_CHART_VERSION"
327321
chart_origin="$chart_origin@$RHDH_HELM_CHART_VERSION"
@@ -330,19 +324,7 @@ install_rhdh_with_helm() {
330324
cp "$chart_values" "$TMP_DIR/chart-values.temp.yaml"
331325
if [ "${AUTH_PROVIDER}" == "keycloak" ]; then yq -i '.upstream.backstage |= . + load("template/backstage/helm/oauth2-container-patch.yaml")' "$TMP_DIR/chart-values.temp.yaml"; fi
332326
if ${ENABLE_RBAC}; then
333-
if helm search repo --devel -r rhdh --version 1.6-1 --fail-on-no-result; then
334-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.6.yaml")' "$TMP_DIR/chart-values.temp.yaml"
335-
elif helm search repo --devel -r rhdh --version 1.5-1 --fail-on-no-result; then
336-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.5.yaml")' "$TMP_DIR/chart-values.temp.yaml"
337-
elif helm search repo --devel -r rhdh --version 1.4-1 --fail-on-no-result; then
338-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.4.yaml")' "$TMP_DIR/chart-values.temp.yaml"
339-
elif helm search repo --devel -r rhdh --version 1.3-1 --fail-on-no-result; then
340-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.3.yaml")' "$TMP_DIR/chart-values.temp.yaml"
341-
elif helm search repo --devel -r rhdh --version 1.2-1 --fail-on-no-result; then
342-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.2.yaml")' "$TMP_DIR/chart-values.temp.yaml"
343-
else
344-
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.1.yaml")' "$TMP_DIR/chart-values.temp.yaml"
345-
fi
327+
yq -i '.upstream.backstage |= . + load("template/backstage/helm/extravolume-patch-1.x.yaml")' "$TMP_DIR/chart-values.temp.yaml"
346328
yq -i '.global.dynamic.plugins |= . + load("template/backstage/helm/rbac-plugin-patch.yaml")' "$TMP_DIR/chart-values.temp.yaml"
347329
fi
348330
envsubst \
@@ -376,7 +358,7 @@ install_rhdh_with_helm() {
376358
yq -i '.upstream.backstage.livenessProbe |= {"httpGet":{"path":"/healthcheck","port":7007,"scheme":"HTTP"},"initialDelaySeconds":30,"timeoutSeconds":2,"periodSeconds":300,"successThreshold":1,"failureThreshold":3}' "$TMP_DIR/chart-values.yaml"
377359
fi
378360
#shellcheck disable=SC2086
379-
helm upgrade --install "${RHDH_HELM_RELEASE_NAME}" --devel "${repo_name}/${RHDH_HELM_CHART}" ${version_arg} -n "${RHDH_NAMESPACE}" --values "$TMP_DIR/chart-values.yaml"
361+
helm upgrade "${RHDH_HELM_RELEASE_NAME}" -i ${RHDH_HELM_REPO} ${version_arg} -n "${RHDH_NAMESPACE}" --values "$TMP_DIR/chart-values.yaml"
380362
wait_to_start statefulset "${RHDH_HELM_RELEASE_NAME}-postgresql-read" 300 300
381363
wait_to_start deployment "${RHDH_HELM_RELEASE_NAME}-developer-hub" 300 300
382364
}
@@ -596,7 +578,6 @@ delete() {
596578
helm uninstall "${RHDH_HELM_RELEASE_NAME}" --namespace "${RHDH_NAMESPACE}"
597579
$clin delete pvc "data-${RHDH_HELM_RELEASE_NAME}-postgresql-0" --ignore-not-found=true
598580
$cli delete ns "${RHDH_NAMESPACE}" --ignore-not-found=true --wait
599-
helm repo remove "${repo_name}" || true
600581
elif [ "$INSTALL_METHOD" == "olm" ]; then
601582
delete_rhdh_with_olm
602583
fi

ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.1.yaml

Lines changed: 0 additions & 53 deletions
This file was deleted.

ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.2.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.3.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.4.yaml

Lines changed: 0 additions & 51 deletions
This file was deleted.

ci-scripts/rhdh-setup/template/backstage/helm/extravolume-patch-1.5.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)