From e0a93e4946abc2f929512916b6b35405713a9cee Mon Sep 17 00:00:00 2001 From: Levi Trammell Date: Mon, 11 Apr 2022 13:58:38 -0500 Subject: [PATCH] Allow override of http port and loadBalancerIP with new helm values Signed-off-by: Levi Trammell --- chart/openfaas/templates/gateway-external-svc.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chart/openfaas/templates/gateway-external-svc.yaml b/chart/openfaas/templates/gateway-external-svc.yaml index 0c1961719..3e8072a86 100644 --- a/chart/openfaas/templates/gateway-external-svc.yaml +++ b/chart/openfaas/templates/gateway-external-svc.yaml @@ -16,9 +16,12 @@ metadata: namespace: {{ .Release.Namespace | quote }} spec: type: {{ .Values.serviceType }} +{{- if and (contains "LoadBalancer" .Values.serviceType) .Values.gatewayExternal.loadBalancerIP }} + loadBalancerIP: {{ .Values.gatewayExternal.loadBalancerIP }} +{{- end }} ports: - name: http - port: 8080 + port: {{ .Values.gatewayExternal.port | default 8080 }} protocol: TCP targetPort: 8080 {{- if contains "NodePort" .Values.serviceType }}