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

Commit

Permalink
Revert "Replace the variable creation to set the Variable"
Browse files Browse the repository at this point in the history
This reverts commit 0c75f99.

Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>
  • Loading branch information
sc2borges committed Feb 4, 2020
1 parent cb1555e commit 6d264d0
Showing 1 changed file with 2 additions and 1 deletion.
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 -}}
{{- $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 6d264d0

Please sign in to comment.