postgres-operator
postgres-operator copied to clipboard
Default storageClass is ignored
Describe the bug
If no StorageClass was specified in storage configuration part in pgo.yaml - default environment default StorageClass is ignored, while pvc has empty storageClassName - https://github.com/CrunchyData/postgres-operator/blob/master/conf/postgres-operator/pvc-storageclass.json#L15
To Reproduce Steps to reproduce the behavior:
- Have a default storageClass setup in the k8s/okd
- Configure pgo.yaml to use dynamic pvc without specifying
storageClass - Create cluster
- Check pvc creation events/logs/yaml - empty storageClassName will fail pvc creation
Expected behavior Default StorageClass might be nice to consider
Please tell us about your environment:
- Container Image Tag: 2.3.0
- PostgreSQL Version: 10
- Platform (Docker, Kubernetes, OpenShift): Openshift
- Platform Version: 3.5.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.