Skip to content

Commit

Permalink
helm: Allow setting 'loadBalancerSourceRanges' for the loki service (g…
Browse files Browse the repository at this point in the history
…rafana#1553)

* Allow setting 'loadBalancerSourceRanges' for the loki service

* Version bump for setting 'loadBalancerSourceRanges' for the loki service
  • Loading branch information
Alejandro Ramirez authored and cyriltovena committed Jan 24, 2020
1 parent 344880e commit 2ec6e74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion production/helm/loki-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
6 changes: 6 additions & 0 deletions production/helm/loki/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 2ec6e74

Please sign in to comment.