Skip to content

Commit

Permalink
[release-1.5] fix: Revert setting storage class fields to null by d…
Browse files Browse the repository at this point in the history
…efault [RHIDP-5953] (#100)

* Revert setting storageClass fields to null by default

When the PVC is initially created, it gets assigned the default storage class

And it becomes impossible to upgrade the Helm Release later on because it looks like the (immutable) PVC is being patched after creation

* Bump Chart version

* Catch regression by testing an in-place upgrade of each chart from its previous version

When using the '–upgrade' flag, regression testing will only be performed if the major version of the Chart is not changed (Semver).

Otherwise, normal testing will still happen.

* Bump Chart version to 3.0.4 because 3.0.3 is already taken on the main branch

---------

Co-authored-by: Armel Soro <asoro@redhat.com>
  • Loading branch information
openshift-cherrypick-robot and rm3l authored Feb 13, 2025
1 parent 9c42717 commit 5d559b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Run chart-testing (latest)
# test with latest stable backstage-showcase release
run: ct install --config ct-install.yaml --target-branch ${{ github.event.pull_request.base.ref }} --helm-extra-set-args="--set=upstream.backstage.image.tag=latest --set=global.clusterRouterBase=app.example.com"
run: ct install --config ct-install.yaml --upgrade --target-branch ${{ github.event.pull_request.base.ref }} --helm-extra-set-args="--set=upstream.backstage.image.tag=latest --set=global.clusterRouterBase=app.example.com"
test-next:
name: Test Next Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -136,4 +136,4 @@ jobs:

- name: Run chart-testing (next)
# test with the next backstage-showcase version (main branch)
run: ct install --config ct-install.yaml --target-branch ${{ github.event.pull_request.base.ref }} --helm-extra-set-args="--set=upstream.backstage.image.tag=next --set=global.clusterRouterBase=app.example.com"
run: ct install --config ct-install.yaml --upgrade --target-branch ${{ github.event.pull_request.base.ref }} --helm-extra-set-args="--set=upstream.backstage.image.tag=next --set=global.clusterRouterBase=app.example.com"
2 changes: 1 addition & 1 deletion charts/backstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ sources:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.0.2
version: 3.0.4
2 changes: 1 addition & 1 deletion charts/backstage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# RHDH Backstage Helm Chart for OpenShift (Community Version)

[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/rhdh-chart&style=flat-square)](https://artifacthub.io/packages/search?repo=rhdh-chart)
![Version: 3.0.2](https://img.shields.io/badge/Version-3.0.2-informational?style=flat-square)
![Version: 3.0.4](https://img.shields.io/badge/Version-3.0.4-informational?style=flat-square)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

A Helm chart for deploying Red Hat Developer Hub.
Expand Down
1 change: 0 additions & 1 deletion charts/backstage/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ upstream:
enabled: true
size: 1Gi
mountPath: /var/lib/pgsql/data
storageClass: null
extraEnvVars:
- name: POSTGRESQL_ADMIN_PASSWORD
valueFrom:
Expand Down

0 comments on commit 5d559b1

Please sign in to comment.