Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/redis] persistence.labels are ignored #25942

Open
jbertozzi opened this issue May 16, 2024 · 2 comments
Open

[bitnami/redis] persistence.labels are ignored #25942

jbertozzi opened this issue May 16, 2024 · 2 comments
Assignees
Labels
redis stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@jbertozzi
Copy link
Contributor

jbertozzi commented May 16, 2024

Name and Version

bitnami/redis 19.3.2

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Create a values file:
commonLabels:
  blah: blah
master:
  persistence:
    labels:
     pvc-backup: enabled
sentinel:
  persistence:
    labels:
      pvc-backup: enabled
replica:
  persistence:
    labels:
      pvc-backup: enabled
  1. Generate the manifests:

helm template redis bitnami/redis --version 19.3.2 -f /tmp/redis-values.yaml > /tmp/r.yaml

  1. Look in the statefulset the volumeClaimTemplates labels:
  volumeClaimTemplates:
    - apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        name: redis-data
        labels:
          app.kubernetes.io/instance: redis
          app.kubernetes.io/name: redis
          app.kubernetes.io/component: replica

Are you using any custom parameters or values?

commonLabels:
  blah: blah
master:
  persistence:
    labels:
     pvc-backup: enabled
sentinel:
  persistence:
    labels:
      pvc-backup: enabled
replica:
  persistence:
    labels:
      pvc-backup: enabled

What is the expected behavior?

yaml generated from Source template redis/templates/{master,replicas,sentinel}/application.yaml should contain labels defined in .Values.master.persistence.labels in .spec.containers[0].volumeClaimTemplates[0].metadata.labels.

What do you see instead?

app.kubernetes.io/instance: redis
app.kubernetes.io/name: redis
app.kubernetes.io/component: replica

Additional information

I don't think the call to common.labels.matchLabels is legit for the volumeClaimTemplates. Furthermore, this is not used in other charts (mongodb, postgresql, ...).

I would be happy to submit a PR replacing this included statement.

@jbertozzi jbertozzi added the tech-issues The user has a technical issue about an application label May 16, 2024
@github-actions github-actions bot added the triage Triage is needed label May 16, 2024
@carrodher
Copy link
Member

Thank you for opening this issue and submitting the associated Pull Request. Our team will review and provide feedback. Once the PR is merged, the issue will automatically close.

Your contribution is greatly appreciated!

Copy link

github-actions bot commented Jun 1, 2024

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 github-actions bot added the stale 15 days without activity label Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
redis stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants