Skip to content

Annotations on Statefulset's volumeClaimTemplate don't propagate to the PVC #24

@lucasfcnunes

Description

@lucasfcnunes

Is your feature request related to a problem? Please describe.

Changing the annotation as follows

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: prometheus-kube-prometheus-stack-prometheus
  namespace: monitoring
# ...
  volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      annotations:
        volume.autoscaler.kubernetes.io/scale-up-max-size: "375809638400" # <- Set on StatefulSet
        # ...
      name: prometheus-data
# ...
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  annotations:
    # volume.autoscaler.kubernetes.io/scale-up-max-size: "375809638400" <- Doesn't propagate/mirror what's in the StatefulSet's volumeClaimTemplates
    # ...
  name: prometheus-data-prometheus-kube-prometheus-stack-prometheus-0
  namespace: monitoring
# ...

Describe the solution you'd like

When the an annotation appears on the StatefulSet's volumeClaimTemplates, mirror on the respective PersistentVolumeClaim.

Describe alternatives you've considered

kubectl annotate -n monitoring pvc prometheus-data-prometheus-kube-prometheus-stack-prometheus-0 volume.autoscaler.kubernetes.io/scale-up-max-size='999999'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions