charts icon indicating copy to clipboard operation
charts copied to clipboard

[bitnami/redis] persistence.labels are ignored

Open monotek opened this issue 1 year ago • 1 comments

Name and Version

bitnami/redis

What architecture are you using?

amd64

What steps will reproduce the bug?

helm template bitnami/redis --set master.persistence.labels.foo=bar

Are you using any custom parameters or values?

See above.

Value should be the right one. See: https://github.com/bitnami/charts/blob/main/bitnami/redis/templates/replicas/application.yaml#L538C93-L538C118

What is the expected behavior?

Label should be added to pvc:

  volumeClaimTemplates:
    - apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        name: redis-data
        labels:
          app.kubernetes.io/instance: release-name
          app.kubernetes.io/name: redis
          app.kubernetes.io/component: replica
          foo: bar
      spec:
        accessModes:
          - "ReadWriteOnce"
        resources:
          requests:
            storage: "8Gi"

What do you see instead?

only the default labels are added:

  volumeClaimTemplates:
    - apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        name: redis-data
        labels:
          app.kubernetes.io/instance: release-name
          app.kubernetes.io/name: redis
          app.kubernetes.io/component: replica
      spec:
        accessModes:
          - "ReadWriteOnce"
        resources:
          requests:
            storage: "8Gi"

Additional information

Same happens if you use sentinel.

monotek avatar Jun 21 '24 10:06 monotek

Hi!

Thank you so much for reporting. Indeed, it seems that there's a missing reference to the persistence labels in the volumeClaimTemplates. As you discovered the issue, would you like to submit a PR?

javsalgar avatar Jun 24 '24 08:06 javsalgar

Just wanted to add that this impacts replica as well.

fullykubed avatar Jul 08 '24 16:07 fullykubed

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Jul 24 '24 01:07 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Jul 29 '24 01:07 github-actions[bot]