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

Commit

Permalink
Replace the variable creation to set the Variable
Browse files Browse the repository at this point in the history
 $ Global scope on prometheusSpec.portName

Signed-off-by: Sergio Borges sergio.borges@safetyculture.io
Signed-off-by: Sergio Borges <sergio.borges@safetyculture.io>
  • Loading branch information
sc2borges committed Feb 4, 2020
1 parent bee0f68 commit b96e47d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 -}}
apiVersion: v1
kind: ServiceList
metadata:
Expand Down Expand Up @@ -32,7 +31,7 @@ items:
{{- end }}
{{- end }}
ports:
- name: {{ $portName }}
- name: {{ $.Values.prometheus.prometheusSpec.portName }}
{{- if eq $serviceValues.type "NodePort" }}
nodePort: {{ $serviceValues.nodePort }}
{{- end }}
Expand Down

0 comments on commit b96e47d

Please sign in to comment.