Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Update Prometheus-operator for accept prometheusSpec.portName to Glob…
Browse files Browse the repository at this point in the history
…al Scope and Chart Version

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>
  • Loading branch information
sc2borges committed Feb 3, 2020
1 parent cf5878d commit 54d91b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stable/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sources:
- https://github.com/coreos/kube-prometheus
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 8.5.15
appVersion: 0.34.0
version: 8.7.1
appVersion: 0.35.0
tillerVersion: ">=2.12.0"
home: https://github.com/coreos/prometheus-operator
keywords:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{{- if and .Values.prometheus.enabled .Values.prometheus.servicePerReplica.enabled }}
{{- $count := .Values.prometheus.prometheusSpec.replicas | int -}}
{{- $serviceValues := .Values.prometheus.servicePerReplica -}}
{{- $serviceValues := .Values.prometheus.servicePerReplica -}}
{{- $portName := .Values.prometheus.prometheusSpec.portName -}}
apiVersion: v1
kind: ServiceList
metadata:
Expand Down Expand Up @@ -31,7 +32,7 @@ items:
{{- end }}
{{- end }}
ports:
- name: {{ .Values.prometheus.prometheusSpec.portName }}
- name: {{ $portName }}
{{- if eq $serviceValues.type "NodePort" }}
nodePort: {{ $serviceValues.nodePort }}
{{- end }}
Expand Down

0 comments on commit 54d91b7

Please sign in to comment.