From fc9c49179fcfd496c82ba40b5598c4e842837476 Mon Sep 17 00:00:00 2001 From: schra Date: Wed, 21 Oct 2020 20:38:01 +0800 Subject: [PATCH] Re-add lost commit: Enable LoadBalancer type service of http (#42) (#49) Enable LoadBalancer type service of http (#42) Enable LoadBalancer type service of http Signed-off-by: Martyn Ranyard Co-authored-by: Martyn Ranyard Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/42 Reviewed-by: luhahn Reviewed-by: techknowlogick Co-Authored-By: iMartyn Co-Committed-By: iMartyn Co-authored-by: iMartyn Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/49 Reviewed-by: luhahn Reviewed-by: Andrew Thornton Co-Authored-By: schra Co-Committed-By: schra --- templates/gitea/http-svc.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/gitea/http-svc.yaml b/templates/gitea/http-svc.yaml index 3c6dda4..ae9c065 100644 --- a/templates/gitea/http-svc.yaml +++ b/templates/gitea/http-svc.yaml @@ -6,7 +6,12 @@ metadata: {{- include "gitea.labels" . | nindent 4 }} spec: type: {{ .Values.service.http.type }} + {{- if and .Values.service.http.loadBalancerIP (eq .Values.service.http.type "LoadBalancer") }} + loadBalancerIP: {{ .Values.service.http.loadBalancerIP }} + {{- end }} + {{ if eq .Values.service.http.type "ClusterIP" }} clusterIP: None + {{- end }} ports: - name: http port: {{ .Values.service.http.port }}