-
Notifications
You must be signed in to change notification settings - Fork 440
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
Doesn't seem possible to use default storage class for Tenant pools #2111
Comments
I tried the following on a 4-node kind cluster:
I used the v5.0.15 chart versions and it created a total of 16 (4 servers with 4 disks) persistent volumes using the default storage class (which is
When I run volumeClaimTemplate:
metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi It also doesn't contain the
My version of Helm (v3.8.0) / Kubernetes (v1.29) doesn't have any problems with |
Okay. I or my GitOps tool must have made a mistake here somewhere. Thanks for verifying. |
@lotyrin I do think that we shouldn't generate the field if it's not set, so I have submitted a PR. |
Creating a tenant with the helm chart, the chart assumes you want to specify a storageClass. If you do not, it sets storageClass to null on the resulting Tenant, which is not a valid value.
Modifying the chart or working around the chart by creating a Tenant manually, it seems that if storage class is not specified on the Tenant, it will specify empty string ('') on the resulting PVC, thereby specifying no storage class, rather than a non-specified storage class (and allowing to use the default class).
Expected Behavior
There should be a way to avoid specifying a storage class and allow the default to be selected.
Current Behavior
Either null (invalid) empty string (no class, create PV manually) or an explicit class will be specified.
Possible Solution
Do not set or propagate values (either in the helm chart or in the operator) which are not set. Distinguish between unspecified, null, and an empty string.
Steps to Reproduce (for bugs)
Create a Tenant without a storage class specified.
Context
I am creating a chart that deploys MinIO to a set of clusters that have different default storage classes. I would like to avoid specifying a class and use the default for each of the clusters.
Regression
Possibly, not sure if this worked in the past or not.
Your Environment
Various. Reproducible in a local environment, e.g. Docker Desktop or minikube.
The text was updated successfully, but these errors were encountered: