Skip to content

Commit

Permalink
[bitnami/keycloak] Add support for service.headless.annotations (bitn…
Browse files Browse the repository at this point in the history
…ami#15432)

* [bitnami/keycloak] 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>

* Apply suggestion

Signed-off-by: Miguel Ruiz <miruiz@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>
  • Loading branch information
migruiz4 and bitnami-bot authored Mar 10, 2023
1 parent 0a37caf commit 8ec5c82
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bitnami/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ name: keycloak
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/keycloak
- https://github.com/keycloak/keycloak
version: 13.2.0
version: 13.3.0
2 changes: 2 additions & 0 deletions bitnami/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ The command removes all the Kubernetes components associated with the chart and
| `service.annotations` | Additional custom annotations for Keycloak service | `{}` |
| `service.extraPorts` | Extra port to expose on Keycloak service | `[]` |
| `service.extraHeadlessPorts` | Extra ports to expose on Keycloak headless service | `[]` |
| `service.headless.annotations` | Annotations for the headless service. | `{}` |
| `service.headless.extraPorts` | Extra ports to expose on Keycloak headless service | `[]` |
| `ingress.enabled` | Enable ingress record generation for Keycloak | `false` |
| `ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` |
| `ingress.pathType` | Ingress path type | `ImplementationSpecific` |
Expand Down
13 changes: 11 additions & 2 deletions bitnami/keycloak/templates/headless-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,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
Expand All @@ -28,6 +34,9 @@ spec:
{{- if .Values.service.extraHeadlessPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraHeadlessPorts "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.service.headless.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.headless.extraPorts "context" $) | nindent 4 }}
{{- end }}
publishNotReadyAddresses: true
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
app.kubernetes.io/component: keycloak
13 changes: 11 additions & 2 deletions bitnami/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,19 @@ service:
## @param service.extraPorts Extra port to expose on Keycloak service
##
extraPorts: []
# DEPRECATED service.extraHeadlessPorts will be removed in a future release, please use service.headless.extraPorts instead
## @param service.extraHeadlessPorts Extra ports to expose on Keycloak headless service
##
extraHeadlessPorts: []

## Headless service properties
##
headless:
## @param service.headless.annotations Annotations for the headless service.
##
annotations: {}
## @param service.headless.extraPorts Extra ports to expose on Keycloak headless service
##
extraPorts: []
## Keycloak ingress parameters
## ref: https://kubernetes.io/docs/user-guide/ingress/
##
Expand Down Expand Up @@ -980,7 +989,7 @@ keycloakConfigCli:
postgresql:
enabled: true
auth:
postgresPassword: ""
postgresPassword: ""
username: bn_keycloak
password: ""
database: bitnami_keycloak
Expand Down

0 comments on commit 8ec5c82

Please sign in to comment.