topolvm / pvc-autoresizer

Auto-resize PersistentVolumeClaim objects based on Prometheus metrics
Apache License 2.0
250 stars 29 forks source link

Enable Configuration of Storage Defaults #286

Open josephangbc opened 1 month ago

josephangbc commented 1 month ago

What should the feature do:

What is use case behind this feature: We are using this awesome project to enable resizing of Spark PVCs dynamically. Currently, feature of adding annotations to PVCs via Spark Confs is only available in Spark v4 (Spark Conf Reference)

Additionally, currently, we do not have the requirement to configure individual PVCs, thus would like to configure the defaults at pvc-autoresizer level.

Draft Pull Request #287

toshipp commented 2 weeks ago

similar to #82, #86

toshipp commented 2 weeks ago

We've encountered similar issues before and felt that implementing them would add unnecessary complexity, so we decided against it. However, it might be time to revisit this decision.

By the way, are you familiar with the downstream project https://github.com/kubesphere/pvc-autoresizer? It allows you to set a default storage limit for each StorageClass, which might be a solution for your situation.