Skip to content

Commit

Permalink
helm: Use .Release.Namespace as default for ServiceMonitor namespace (#…
Browse files Browse the repository at this point in the history
…10249)

Signed-off-by: Kazuki Suda <[email protected]>
  • Loading branch information
superbrothers authored Aug 11, 2023
1 parent 411edd7 commit e17927b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/ingress-nginx/templates/controller-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
name: {{ include "ingress-nginx.controller.fullname" . }}
{{- if .Values.controller.metrics.serviceMonitor.namespace }}
namespace: {{ .Values.controller.metrics.serviceMonitor.namespace | quote }}
{{- else }}
namespace: {{ .Release.Namespace }}
{{- end }}
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
Expand Down

0 comments on commit e17927b

Please sign in to comment.