Repository navigation
[Feature] Add VolumeAttributesClass support to StorageVolume - #762
AdheipSingh wants to merge 3 commits into
Conversation
|
Hey, this is super useful for our use cases as well. Looking forward for it to be released. Just want to point out: The PVC field is `{"spec":{"volumeAttributeClassName":"%s"}}`That key doesn't match the real PVC spec, so the patch won't change IOPS/throughput. Docs (note the plural): https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#PersistentVolumeClaimSpec Please double check on this. :) |
|
Another comment I want to make is: Is it possible to bind different VolumeAttributesClass to different types of disks (meaning Not necessarily has to be tackled on this PR though. |
Closes StarRocks#749 Signed-off-by: AdheipSingh <adheip1222@gmail.com>
Signed-off-by: AdheipSingh <adheip1222@gmail.com>
532a013 to
b31c4c2
Compare
…meAttributesClassName PatchPVCVolumeAttributesClass lists and patches the PVCs of a StatefulSet, but the operator had no RBAC rule for persistentvolumeclaims. Through the cached client the list starts a PVC informer that can never sync, so setting volumeAttributesClassName on any storage volume blocked the reconcile of the whole cluster, not just the PVC patch. Add get/list/watch/patch on persistentvolumeclaims to the kubebuilder markers, config/rbac, deploy/operator.yaml and the Helm clusterrole/role. Signed-off-by: adheip <adheip@deep.bi>
|
Tick the box to add this pull request to the merge queue (same as
|
Summary
volumeAttributeClassNamefield toStorageVolume, enabling dynamic modification of EBS volume type, IOPS, and throughput via Kubernetes VolumeAttributesClass (k8s 1.31+)VolumeAttributeClassNameon PVC spec, the operator patches individual PVCs at runtime using unstructured merge patches after StatefulSet reconciliationCloses #749
Changes
volumeAttributeClassNamefield onStorageVolumePatchPVCVolumeAttributeClassutility patches existing PVCs after StatefulSet apply in FE, BE, and CN controllersvolumeAttributeClassNamevalue added to FE, BE, CN storageSpec in both kube-starrocks and warehouse charts