Skip to content

Commit

Permalink
[prometheus-modbus-exporter] fix deployment template to handle image.…
Browse files Browse the repository at this point in the history
…registry value (#4436)

Signed-off-by: Christophe Rime <christopherime@me.com>
  • Loading branch information
christopherime committed Apr 23, 2024
1 parent 4d52be3 commit 7f75d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-modbus-exporter/Chart.yaml
Expand Up @@ -11,7 +11,7 @@ keywords:

type: application

version: 0.1.0
version: 0.1.1
appVersion: "0.4.0"

maintainers:
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-modbus-exporter/templates/deployment.yaml
Expand Up @@ -35,7 +35,7 @@ spec:
- "--log.format={{ .Values.log.format }}"
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: metrics
Expand All @@ -56,7 +56,7 @@ spec:
mountPath: /etc/modbus_exporter/
{{ if .Values.configReloaderSidecar.enable }}
- name: {{ include "prometheus-modbus-exporter.fullname" . }}-config-reloader-sidecar
image: "{{ .Values.configReloaderSidecar.image.repository }}:{{ .Values.configReloaderSidecar.image.tag }}"
image: "{{ .Values.configReloaderSidecar.image.registry }}/{{ .Values.configReloaderSidecar.image.repository }}:{{ .Values.configReloaderSidecar.image.tag }}"
env:
- name: CONFIG_DIR
value: /etc/modbus_exporter/
Expand Down

0 comments on commit 7f75d69

Please sign in to comment.