File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
deploy/cert-manager-sync/templates Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515 metadata :
1616 {{- with .Values.podAnnotations }}
1717 annotations :
18- {{- if .Values.Metrics.enabled }}
18+ {{- if .Values.metrics }}
19+ {{- if .Values.metrics.enabled }}
1920 prometheus.io/scrape : " true"
20- prometheus.io/port : " {{ .Values.Metrics.port }}"
21+ prometheus.io/port : " {{ .Values.metrics.port }}"
22+ {{- end }}
2123 {{- end }}
2224 {{- toYaml . | nindent 8 }}
2325 {{- end }}
@@ -55,18 +57,20 @@ spec:
5557 - name : CACHE_DISABLE
5658 value : " {{ .Values.config.disableCache }}"
5759 - name : ENABLE_METRICS
58- value : " {{ .Values.metrics.enabled }}"
60+ value : " {{ .Values.metrics.enabled | default false }}"
5961 - name : METRICS_PORT
60- value : " {{ .Values.metrics.port }}"
62+ value : " {{ .Values.metrics.port | default 9090 }}"
6163 {{- with .Values.env }}
6264 {{- toYaml . | nindent 10 }}
6365 {{- end }}
66+ {{- if .Values.metrics }}
6467 {{- if .Values.metrics.enabled }}
6568 ports :
6669 - name : metrics
6770 containerPort : {{ .Values.metrics.port }}
6871 protocol : TCP
6972 {{- end }}
73+ {{- end }}
7074 {{- with .Values.nodeSelector }}
7175 nodeSelector :
7276 {{- toYaml . | nindent 8 }}
You can’t perform that action at this time.
0 commit comments