[bitnami/nats] Add support for service.headless.annotations (#15437)

* [bitnami/nats] Add support for service.headless.annotations

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Miguel Ruiz
2023-03-21 17:13:15 +01:00
committed by GitHub
parent 129ac1ffc9
commit 5937c6d5cf
4 changed files with 16 additions and 3 deletions

View File

@@ -24,4 +24,4 @@ name: nats
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/nats
- https://nats.io/
version: 7.5.13
version: 7.6.0

View File

@@ -191,6 +191,7 @@ The command removes all the Kubernetes components associated with the chart and
| `service.externalTrafficPolicy` | NATS service external traffic policy | `Cluster` |
| `service.annotations` | Additional custom annotations for NATS service | `{}` |
| `service.extraPorts` | Extra ports to expose in the NATS service (normally used with the `sidecar` value) | `[]` |
| `service.headless.annotations` | Annotations for the headless service. | `{}` |
| `ingress.enabled` | Set to true to enable ingress record generation | `false` |
| `ingress.pathType` | Ingress Path type | `ImplementationSpecific` |
| `ingress.apiVersion` | Override API Version (automatically detected if not set) | `""` |

View File

@@ -7,8 +7,14 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- if or .Values.commonAnnotations .Values.service.headless.annotations }}
annotations:
{{- if .Values.service.headless.annotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.service.headless.annotations "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
type: ClusterIP

View File

@@ -550,6 +550,12 @@ service:
## @param service.extraPorts Extra ports to expose in the NATS service (normally used with the `sidecar` value)
##
extraPorts: []
## Headless service properties
##
headless:
## @param service.headless.annotations Annotations for the headless service.
##
annotations: {}
## NATS ingress parameters
## ref: https://kubernetes.io/docs/user-guide/ingress/
##