Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: Disable dynamic plugin cache PVC by default [RHIDP-5569] #94

Conversation

Fortune-Ndlovu
Copy link

@Fortune-Ndlovu Fortune-Ndlovu commented Feb 6, 2025

Description of the Change

This PR removes the dynamicPlugins section entirely and makes the dynamic plugin cache fully ephemeral by default in the RHDH Helm Chart. Instead of handling PVC creation within the chart, users can now configure an ephemeral volume claim directly under extraVolumes.

Additionally, the chart version has been updated to 3.0.0 as this introduces a breaking change compared to the previous version. This does not impact the downstream chart version, which remains at 1.5.0.

Changes

  • Removed dynamicPlugins.cache.volumeClaimSpec from values.yaml, ensuring all dynamic plugin storage is ephemeral.
  • Updated extraVolumes to define ephemeral volume claims directly, making storage configuration more explicit.
  • Updated CI values (ci/with-custom-dynamic-pvc-claim-spec-values.yaml) to reflect how users can specify storage options for the ephemeral volume claim, including storage class configurations.
  • Bumped charts/backstage/Chart.yaml version to 3.0.0, marking this as a breaking change.

How to Test

  1. Deploy the updated chart and verify that no PVC is created by default:

    helm upgrade --install rhdh-backstage charts/backstage --namespace rhdh
    oc get pvc -n rhdh  # No PVC should be present
    
    

Existing or Associated Issue(s)

https://issues.redhat.com/browse/RHIDP-5569

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The pre-commit utility can be used to generate the necessary content. Use pre-commit run -a to apply changes.
  • JSON Schema template updated and re-generated the raw schema via pre-commit hook.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

@openshift-ci openshift-ci bot requested review from gazarenkov and kadel February 6, 2025 18:21
Signed-off-by: rhdh-bot service account <rhdh-bot@redhat.com>
@Fortune-Ndlovu Fortune-Ndlovu force-pushed the RHIDP-5569-default-disable-dynamic-plugin-cache-pvc branch from 508b001 to ccd918c Compare February 6, 2025 18:23
…lm chart documentation with helm-docs

Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
…/with-custom-dynamic-pvc-claim-spec-values.yaml
Signed-off-by: Fortune-Ndlovu <fndlovu@redhat.com>
@Fortune-Ndlovu
Copy link
Author

cc @rm3l for review

@rm3l
Copy link
Member

rm3l commented Feb 7, 2025

/cc

@openshift-ci openshift-ci bot requested a review from rm3l February 7, 2025 11:08
@rm3l
Copy link
Member

rm3l commented Feb 10, 2025

How to Test
Deploy the updated chart and verify that no PVC is created by default:

helm upgrade --install rhdh-backstage charts/backstage --namespace rhdh
oc get pvc -n rhdh # No PVC should be present

In your "How to test" section from your PR description, there will actually be a PVC created, except that it will be ephemeral and tied to a single pod.

Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Feb 10, 2025
@rm3l rm3l changed the title Fix: RHIDP-5569-default-disable-dynamic-plugin-cache-pvc fix!: Disable dynamic plugin cache PVC by default in the Helm Chart [RHIDP-5569] Feb 10, 2025
@rm3l rm3l changed the title fix!: Disable dynamic plugin cache PVC by default in the Helm Chart [RHIDP-5569] fix!: Disable dynamic plugin cache PVC by default [RHIDP-5569] Feb 10, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 89f0ba9 into redhat-developer:main Feb 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants