-
Notifications
You must be signed in to change notification settings - Fork 110
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
Provide a mechanism to create DiskPool CRs #1758
Comments
I'm open to create a PR with the solution we're currently using. |
First of all, thank you for your interest in submitting the PR. As far as I know, the charts used for installation follow a standard format, and we generally don't encourage (though we don’t prohibit it either, as it's up to the user) editing the values.yaml file before applying it. With your proposed feature, users would need to configure the node name and disk in the The storage class example you referred to here creates a default storage class that doesn't require customization. It's intended for users to benefit from having a pre-provisioned default storage class available for immediate use. Open to suggestions here. @avishnu @tiagolobocastro |
Thanks for the feedback @sinhaashish! It's similar to other helm chart's offering when you want to create extra resources in one single go. Inspiration from argocd |
I think this would good, I don't think this requires users to edit the helm chart, on the contrary this means they can use the upstream chart and simply pass -f extra.yaml How would it work if a user enables diskpools and then disables them? Does helm forcefully remove the pool CR by deleting and removing finalyzers, or does it simply issue delete? |
If the user disables the diskpool and it triggers removing the CRD, then the DiskPool resources should be removed because of:
Otherwise, the CR would keep in etcd |
Is your feature request related to a problem? Please describe.
It would be very helpful to have a mechanism for defining DiskPool objects in this same chart.
This way, we don't need to specify the DiskPool CRs by other means (e.g., a separate chart, separate manifests managed by kustomize, etc.), which ultimately leads to a non-cohesive approach.
Describe the solution you'd like
A similar mechanism as used for defining the StorageClass CR: https://github.com/openebs/mayastor-extensions/blob/develop/chart/templates/storageclass.yaml
Proposed solution:
chart/templates/diskpool.yaml
values.yaml
:Describe alternatives you've considered
We currently keep an tweaked version of this Chart with the proposal from above.
Our first approach was to create the CRs in a separate Chart. We've abandoned that idea because of the increased cognitive load.
Additional context
None
The text was updated successfully, but these errors were encountered: