[stable/prometheus-operator]Moving out PrometheusSpec.portName from range loop to Global Scope. (#20495)

* Update Prometheus-operator for accept prometheusSpec.portName to Global Scope and Chart Version

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>

* Changing the variable field to use the global $ scope context

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>

* Update the Chart Version

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>

* Bumps the Chart version to 8.9.1

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>

* Bump the Chart Version

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>
This commit is contained in:
Sergio Borges
2020-02-22 07:14:47 -08:00
committed by GitHub
parent b7afaf9d88
commit 880fa53e2d
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.9.1
version: 8.9.2
appVersion: 0.36.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
@@ -1,7 +1,6 @@
{{- if and .Values.prometheus.enabled .Values.prometheus.servicePerReplica.enabled }}
{{- $count := .Values.prometheus.prometheusSpec.replicas | int -}}
{{- $serviceValues := .Values.prometheus.servicePerReplica -}}
{{- $portName := .Values.prometheus.prometheusSpec.portName -}}
{{- $serviceValues := .Values.prometheus.servicePerReplica -}}
apiVersion: v1
kind: List
metadata:
@@ -32,7 +31,7 @@ items:
{{- end }}
{{- end }}
ports:
- name: {{ $portName }}
- name: {{ $.Values.prometheus.prometheusSpec.portName }}
{{- if eq $serviceValues.type "NodePort" }}
nodePort: {{ $serviceValues.nodePort }}
{{- end }}