From 2ec6e742ff8438da3a5443defcb6aa001112ecc3 Mon Sep 17 00:00:00 2001 From: Alejandro Ramirez Date: Fri, 24 Jan 2020 10:31:45 -0600 Subject: [PATCH] helm: Allow setting 'loadBalancerSourceRanges' for the loki service (#1553) * Allow setting 'loadBalancerSourceRanges' for the loki service * Version bump for setting 'loadBalancerSourceRanges' for the loki service --- production/helm/loki-stack/Chart.yaml | 2 +- production/helm/loki/Chart.yaml | 2 +- production/helm/loki/templates/service.yaml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/production/helm/loki-stack/Chart.yaml b/production/helm/loki-stack/Chart.yaml index 55bd6ecd9a173..37623721ba30c 100644 --- a/production/helm/loki-stack/Chart.yaml +++ b/production/helm/loki-stack/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: "v1" name: loki-stack -version: 0.26.0 +version: 0.27.0 appVersion: v1.3.0 kubeVersion: "^1.10.0-0" description: "Loki: like Prometheus, but for logs." diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index 2242a5d28717a..9b92fd66fc748 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: "v1" name: loki -version: 0.23.0 +version: 0.24.0 appVersion: v1.3.0 kubeVersion: "^1.10.0-0" description: "Loki: like Prometheus, but for logs." diff --git a/production/helm/loki/templates/service.yaml b/production/helm/loki/templates/service.yaml index 0df957409f7cc..10d030d4c5d47 100644 --- a/production/helm/loki/templates/service.yaml +++ b/production/helm/loki/templates/service.yaml @@ -17,6 +17,12 @@ spec: type: {{ .Values.service.type }} {{- if (and (eq .Values.service.type "ClusterIP") (not (empty .Values.service.clusterIP))) }} clusterIP: {{ .Values.service.clusterIP }} +{{- end }} +{{- if .Values.service.loadBalancerSourceRanges }} + loadBalancerSourceRanges: + {{- range $cidr := .Values.service.loadBalancerSourceRanges }} + - {{ $cidr }} + {{- end }} {{- end }} ports: - port: {{ .Values.service.port }}