-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
base: main
Are you sure you want to change the base?
Conversation
9dd50bc
to
022234e
Compare
Signed-off-by: Sepideh Alavi <[email protected]> [bitnami/redis] add extraPortsEnabled Signed-off-by: Sepideh Alavi <[email protected]>
022234e
to
8ddf5ad
Compare
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
There was a problem hiding this 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.
## @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: [] |
There was a problem hiding this comment.
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)
{{- range .Values.service.headless.extraPorts }} | ||
- name: "{{ .name }}" | ||
port: {{ .port }} | ||
protocol: "{{ .protocol | default "TCP" }}" | ||
targetPort: {{ .targetPort | default .port }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{- 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 }} |
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
Additional information
Checklist
Chart.yaml
according to semver. This is not necessary when the changes only affect README.md files.README.md
using readme-generator-for-helm