banzaicloud / koperator

Oh no! Yet another Apache Kafka operator for Kubernetes
Apache License 2.0
789 stars 198 forks source link

Be able to set annotation on PVC spec #1082

Open TomBillietKlarrio opened 6 months ago

TomBillietKlarrio commented 6 months ago

Problem Statement

Setting parameters on AWS-EBS volumes can be done dynamically, but this is not possible to control this via koperator

Proposed Solution

See: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/docs/modify-volume.md You can't change parameters in a storageclass, since a storageclass is immutable. Changing a storage-class in order to change something like troughput/iops is able rather overkill. Settings this as annotation on the PVC would be a nice solution. The AWS-CSI driver supports this, it's just that you can't set PVC annotation in the kafkacluster spec. So I think that should be rather doable to add.