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: Make the dynamic plugins root PVC storage class configurable [RHDHBUGS-156][RHIDP-5573] #69

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Jan 15, 2025

Description of the change

This PR extracts the dynamic plugins root PVC spec in a new dynamicPlugins.cache.volumeClaimSpec field in the values file.

This way, the whole PVC spec is configurable, including the storage class name, along with other things like the PVC size and access modes.

This should also help with https://issues.redhat.com/browse/RHIDP-5516 (make it possible to disable the dynamic plugin cache PVC and switch to an ephemeral volume).

Existing or Associated Issue(s)

Additional Information

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.

@rm3l rm3l marked this pull request as ready for review January 15, 2025 16:24
@openshift-ci openshift-ci bot requested review from nickboldt and tumido January 15, 2025 16:24
@rm3l rm3l requested review from gazarenkov and Fortune-Ndlovu and removed request for nickboldt and tumido January 15, 2025 16:25
@rm3l
Copy link
Member Author

rm3l commented Jan 20, 2025

/cc @kadel @durandom

@openshift-ci openshift-ci bot requested review from durandom and kadel January 20, 2025 10:16
@rm3l rm3l merged commit 65aa524 into redhat-developer:main Jan 20, 2025
5 of 6 checks passed
@rm3l rm3l deleted the RHDHBUGS-156--RHIDP-5573--make-storage-class-configurable branch January 20, 2025 16:31
@rm3l
Copy link
Member Author

rm3l commented Feb 3, 2025

/cherry-pick release-1.3
/cherry-pick release-1.4

Backport needed for 1.3 (https://issues.redhat.com/browse/RHIDP-5835) and 1.4 (https://issues.redhat.com/browse/RHIDP-5836)

@openshift-cherrypick-robot

@rm3l: #69 failed to apply on top of branch "release-1.3":

Applying: Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file
Using index info to reconstruct a base tree...
M	charts/backstage/templates/pvcs.yaml
M	charts/backstage/values.yaml
Falling back to patching base and 3-way merge...
Auto-merging charts/backstage/values.yaml
Auto-merging charts/backstage/templates/pvcs.yaml
CONFLICT (content): Merge conflict in charts/backstage/templates/pvcs.yaml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

In response to this:

/cherry-pick release-1.3
/cherry-pick release-1.4

Backport needed for 1.3 (https://issues.redhat.com/browse/RHIDP-5835) and 1.4 (https://issues.redhat.com/browse/RHIDP-5836)

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (redhat-developer#69)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (redhat-developer#69)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (redhat-developer#69)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (redhat-developer#69)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (#69) (#80)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit to rm3l/rhdh-chart that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (redhat-developer#69)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
rm3l added a commit that referenced this pull request Feb 3, 2025
…DHBUGS-156][RHIDP-5573] (#69) (#90)

* Extract the dynamic plugins root PVC spec in a `dynamicPlugins.cache.volumeClaimSpec` field in the values file

This way, the whole PVC spec is configurable, including the storage
class name, along with other things like the PVC size and access modes.

* Bump the Chart version

* Extract the PostgreSQL PVC storageClass field to highlight that this configurable as well

See https://github.com/bitnami/charts/blob/postgresql/12.10.0/bitnami/postgresql/README.md#postgresql-primary-parameters

* Add test values file

* Regenerate README
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.

4 participants