{{- if .Values.exporters.jmx.enabled }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "common.release" . }}-jmx-exporter labels: app: {{ template "common.name" . }} chart: {{ .Chart.Name }} release: {{ include "common.release" . }} heritage: {{ .Release.Service }} data: config.yml: |- hostPort: 127.0.0.1:{{ .Values.env.JMXPORT }} lowercaseOutputName: {{ .Values.exporters.jmx.config.lowercaseOutputName }} rules: {{ .Values.exporters.jmx.config.rules | toYaml | indent 6 }} ssl: false startDelaySeconds: {{ .Values.exporters.jmx.config.startDelaySeconds }} {{- end }}