Skip to content

Commit

Permalink
Updates and incorporating review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Faisal K <[email protected]>
  • Loading branch information
faisal-khalique committed Mar 31, 2024
1 parent 9adef80 commit 6ff0e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions charts/prometheus-json-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- with .Values.extraInitContainers }}
initContainers:
{{ toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
{{- if .Values.extraArgs }}
{{- with .Values.extraArgs }}
args:
{{- range .Values.extraArgs }}
{{- range . }}
- {{ .name | quote }}
- {{ .value | quote }}
{{- end }}
Expand Down
5 changes: 2 additions & 3 deletions charts/prometheus-json-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ spec:
- targetLabel: {{ $targetLabel }}
replacement: {{ $replacement }}
{{- end }}
{{- $relabelings := .additionalRelabels | default $.Values.serviceMonitor.defaults.additionalRelabels }}
{{- if $relabelings }}
{{- with .additionalRelabels | default $.Values.serviceMonitor.defaults.additionalRelabels }}
relabelings:
{{- toYaml $relabelings | nindent 6 }}
{{- toYaml . | nindent 6 }}
{{- end }}
jobLabel: "{{ $.Release.Name }}"
selector:
Expand Down

0 comments on commit 6ff0e9b

Please sign in to comment.