Skip to content

Add Support for Pod Annotations in Redis Cluster Helm Chart Template #1588

@hanbing204

Description

@hanbing204

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

In our current deployments using the Redis Cluster Template, we have a requirement to assign specific annotations to pods for better integration with our monitoring. The absence of support for podAnnotations in the Helm chart templates requires us to manually edit the chart each time there's an update.

Describe the solution you'd like

We would like to see the addition of a podAnnotations field in the values.yaml file, with corresponding support in the Redis Cluster Helm chart templates. This would allow users to define custom annotations for the pods directly in the values file, facilitating seamless integration and customization without the need to alter the chart directly.
Example implementation in the deployment.yaml template:

metadata:
  annotations:
    {{- if .Values.podAnnotations }}
    {{- toYaml .Values.podAnnotations | nindent 8 }}
    {{- end }}

Describe alternatives you've considered

N/A

What version of redis-operator are you using?
redis-operator version: 0.21.1

Additional context

Metadata

Metadata

Assignees

No one assigned

    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