Open josephangbc opened 1 month ago
similar to #82, #86
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.
What should the feature do:
ResizeThresholdAnnotation
,ResizeInodesThresholdAnnotation
,ResizeIncreaseAnnotation
andStorageLimitAnnotation
StorageLimitAnnotation
,PvcStorageLimit
function returns0
, after whichisTargetPVC
function returns false, resulting in PVC being skipped inpvcAutoresizer
.reconcile
functionWhat 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