From b9bcea36d539fc2bdfbb5753033db78b82c4955a Mon Sep 17 00:00:00 2001 From: Andrew Kew Date: Mon, 5 Sep 2022 18:25:39 +0100 Subject: [PATCH] [bitnami/keycloak] Added ability to toggle http port on k8s service (#11504) * [bitnami/keycloak] Added ability to toggle http port on k8s service Signed-off-by: Andrew Kew * Updating READMe using auto readme tool and bumping version of chart Signed-off-by: Andrew Kew * [bitnami/keycloak] Added ability to toggle http port on k8s service Signed-off-by: Andrew Kew * Updating READMe using auto readme tool and bumping version of chart Signed-off-by: Andrew Kew * Adding new line to chart file Signed-off-by: Andrew Kew Signed-off-by: Andrew Kew --- bitnami/keycloak/README.md | 1 + bitnami/keycloak/templates/service.yaml | 2 ++ bitnami/keycloak/values.yaml | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/bitnami/keycloak/README.md b/bitnami/keycloak/README.md index d09e51401..f9df54d9d 100644 --- a/bitnami/keycloak/README.md +++ b/bitnami/keycloak/README.md @@ -184,6 +184,7 @@ The command removes all the Kubernetes components associated with the chart and | Name | Description | Value | | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | | `service.type` | Kubernetes service type | `LoadBalancer` | +| `service.http.enabled` | Enable http port on service | `true` | | `service.ports.http` | Keycloak service HTTP port | `80` | | `service.ports.https` | Keycloak service HTTPS port | `443` | | `service.nodePorts` | Specify the nodePort values for the LoadBalancer and NodePort service types. | `{}` | diff --git a/bitnami/keycloak/templates/service.yaml b/bitnami/keycloak/templates/service.yaml index de06a8ece..3732c7cfd 100644 --- a/bitnami/keycloak/templates/service.yaml +++ b/bitnami/keycloak/templates/service.yaml @@ -38,6 +38,7 @@ spec: sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }} {{- end }} ports: + {{- if .Values.service.http.enabled }} - name: http port: {{ coalesce .Values.service.ports.http .Values.service.port }} protocol: TCP @@ -47,6 +48,7 @@ spec: {{- else if eq .Values.service.type "ClusterIP" }} nodePort: null {{- end }} + {{- end }} {{- if .Values.auth.tls.enabled }} - name: https port: {{ coalesce .Values.service.ports.https .Values.service.httpsPort }} diff --git a/bitnami/keycloak/values.yaml b/bitnami/keycloak/values.yaml index 87db03d0d..84dee0ec3 100644 --- a/bitnami/keycloak/values.yaml +++ b/bitnami/keycloak/values.yaml @@ -464,6 +464,10 @@ service: ## @param service.type Kubernetes service type ## type: LoadBalancer + ## @param service.http.enabled Enable http port on service + ## + http: + enabled: true ## @param service.ports.http Keycloak service HTTP port ## @param service.ports.https Keycloak service HTTPS port ##