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] add extraPortsEnabled #30607

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shecodesmagic
Copy link

Description of the change

This change introduces an optional parameter service.headless.extraPorts, allowing users to specify extra ports to be exposed on the headless service. Users can define additional ports (e.g., for metrics or custom services) directly under service.headless.extraPorts.

Benefits

Users can expose additional ports via the headless service for better integration, monitoring, or custom functionality. They can add extra ports without the need for additional enabling flags; simply defining service.headless.extraPorts is sufficient.
Moreover, existing deployments remain unaffected unless users choose to utilize the new extraPorts parameter.

Possible drawbacks

None known.

Applicable issues

  • fixes #

Additional information

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

@shecodesmagic
Copy link
Author

shecodesmagic commented Nov 24, 2024

cc: @migruiz4 - was struggling with the previous PR, closed and raised a new one 😁 (link to the old one with your comment : #29881)

Signed-off-by: Sepideh Alavi <[email protected]>

[bitnami/redis] add extraPortsEnabled

Signed-off-by: Sepideh Alavi <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
@javsalgar javsalgar added verify Execute verification workflow for these changes in-progress labels Nov 25, 2024
@github-actions github-actions bot removed the triage Triage is needed label Nov 25, 2024
@github-actions github-actions bot removed the request for review from javsalgar November 25, 2024 08:40
Signed-off-by: Bitnami Containers <[email protected]>
Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for contributing. I added a couple of suggestions.

Comment on lines +2253 to +2265
## @section service configuration parameters
##
service:
headless:
## @param service.headless.extraPorts Optionally specify extra ports to expose for the headless service.
## Example:
## extraPorts:
## - name: my-custom-port
## port: 12345
## protocol: TCP
## targetPort: 12345
##
extraPorts: []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Section service.headless already exists. Please place this code there (L1462)

Comment on lines +36 to +41
{{- range .Values.service.headless.extraPorts }}
- name: "{{ .name }}"
port: {{ .port }}
protocol: "{{ .protocol | default "TCP" }}"
targetPort: {{ .targetPort | default .port }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- range .Values.service.headless.extraPorts }}
- name: "{{ .name }}"
port: {{ .port }}
protocol: "{{ .protocol | default "TCP" }}"
targetPort: {{ .targetPort | default .port }}
{{- end }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.headless.extraPorts "context" $) | nindent 4 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-progress redis verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants