Replies: 2 comments 8 replies
-
I'm not sure I exactly follow the issue. The resizing works a little differently on every platform and Strimzi is platform agnostic. And I definitely don't think there is any general issue in resizing the volumes. Strimzi does not really know your environment and cannot set any custom annotations based on it. But if you want, you can add your own annotations through the template section of the Kafka resource: https://strimzi.io/docs/operators/latest/full/configuring.html#type-KafkaClusterTemplate-reference |
Beta Was this translation helpful? Give feedback.
-
Thanks for fixing these specific annotations. In general though, I think it would be better to ignore all annotation keys with k8s.io or kubernetes.io suffixes. Kubernetes features may add new annotations so this would be better future proofing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
the
CanSupport()
function in csi_resizer.go has a line looking forand will fail the resize if that annotation pair does not exist and if the volume is a in-tree volume post migration. the
VolumeResizerKey
is defined here asvolume.kubernetes.io/storage-resizer
and I do not see this annotation in any of the PVCs created with strimzi. In a new cluster I created a in-tree gce-pd PVC and expanded it, after expansion I see the annotations:in the strimzi PVCs (no matter if the expansion succeeded or not) I see multiple annotations missing, including the storage-resizer annotation:
digging deeper I saw that after the annotation is added,
strimzi-cluster-operator
patched the PVC without these annotations and overwrote the PVC annotation which CSI migration depend on to correctly resize the PVC.Strimzi version
0.35.0
Kubernetes version
1.23+
Beta Was this translation helpful? Give feedback.
All reactions