From 8fb57b472e7a9d5117734566146f272ebc071aa2 Mon Sep 17 00:00:00 2001 From: Nick Perry Date: Thu, 25 Jul 2019 08:43:57 +0100 Subject: [PATCH] [stable/gangway] Add ability to define loadBalancerIP when using LoadBalancer service type. (#15862) Signed-off-by: Nick Perry --- stable/gangway/Chart.yaml | 2 +- stable/gangway/templates/service.yaml | 3 +++ stable/gangway/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stable/gangway/Chart.yaml b/stable/gangway/Chart.yaml index 848b5cbed1..2bd9b907ec 100644 --- a/stable/gangway/Chart.yaml +++ b/stable/gangway/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: An application that can be used to easily enable authentication flows via OIDC for a kubernetes cluster. name: gangway -version: 0.0.5 +version: 0.1.5 appVersion: 3.0.0 home: https://github.com/heptiolabs/gangway sources: diff --git a/stable/gangway/templates/service.yaml b/stable/gangway/templates/service.yaml index 8f854f05ed..d03f29ee02 100644 --- a/stable/gangway/templates/service.yaml +++ b/stable/gangway/templates/service.yaml @@ -18,6 +18,9 @@ spec: targetPort: {{ .Values.gangway.port }} protocol: TCP name: http +{{- if and (eq "LoadBalancer" $.Values.service.type) (.Values.service.loadBalancerIP) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} +{{- end}} selector: app.kubernetes.io/name: {{ include "gangway.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/stable/gangway/values.yaml b/stable/gangway/values.yaml index 4f00c4dc74..6744d08d6d 100644 --- a/stable/gangway/values.yaml +++ b/stable/gangway/values.yaml @@ -110,6 +110,8 @@ gangway: service: type: ClusterIP port: 80 + # Specifies a loadBalancerIP when using LoadBalancer service type + # loadBalancerIP: 192.168.0.51 ingress: enabled: false