mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user