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 #79

Conversation

Fortune-Ndlovu
Copy link

@Fortune-Ndlovu Fortune-Ndlovu commented Jan 29, 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 coreydaley and tumido January 29, 2025 05:53
@Fortune-Ndlovu Fortune-Ndlovu force-pushed the RHIDP-5569-defaultly-disable-dynamic-plugin-cache-pvc branch from a33ac3f to d37799f Compare January 29, 2025 07:10
@rm3l rm3l self-assigned this Feb 4, 2025
@Fortune-Ndlovu Fortune-Ndlovu requested a review from rm3l February 4, 2025 16:02
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.

Also, could you update the CI values file accordingly, to reflect how people would specify a different storage class name for this ephemeral PVC?

@Fortune-Ndlovu Fortune-Ndlovu requested a review from rm3l February 5, 2025 12:31
@Fortune-Ndlovu Fortune-Ndlovu force-pushed the RHIDP-5569-defaultly-disable-dynamic-plugin-cache-pvc branch 2 times, most recently from 8846abf to 33145e8 Compare February 6, 2025 14:44
@Fortune-Ndlovu Fortune-Ndlovu requested a review from rm3l February 6, 2025 15:24
@Fortune-Ndlovu Fortune-Ndlovu requested a review from rm3l February 6, 2025 16:27
@Fortune-Ndlovu Fortune-Ndlovu force-pushed the RHIDP-5569-defaultly-disable-dynamic-plugin-cache-pvc branch 6 times, most recently from 65cfa88 to de7d416 Compare February 6, 2025 17:49
@Fortune-Ndlovu Fortune-Ndlovu force-pushed the RHIDP-5569-defaultly-disable-dynamic-plugin-cache-pvc branch from de7d416 to 4096934 Compare February 6, 2025 17:54
Copy link

sonarqubecloud bot commented Feb 6, 2025

@Fortune-Ndlovu
Copy link
Author

Fortune-Ndlovu commented Feb 6, 2025

This PR was unintentionally closed after a forced reset (git reset --hard origin/main). Because of that, GitHub does not allow reopening it. Creating a new PR with the same changes...#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants