diff --git a/HelmChart/public/oneuptime/templates/_helpers.tpl b/HelmChart/public/oneuptime/templates/_helpers.tpl index d56129a73c..365d1267d8 100644 --- a/HelmChart/public/oneuptime/templates/_helpers.tpl +++ b/HelmChart/public/oneuptime/templates/_helpers.tpl @@ -229,7 +229,11 @@ spec: {{- end }} {{- end }} containers: + {{- if $.ImageName }} + - image: {{ printf "%s/%s/%s:%s" .Values.image.registry .Values.image.repository $.ImageName .Values.image.tag }} + {{- else }} - image: {{ printf "%s/%s/%s:%s" .Values.image.registry .Values.image.repository $.ServiceName .Values.image.tag }} + {{- end}} name: {{ printf "%s-%s" $.Release.Name $.ServiceName }} imagePullPolicy: {{ $.Values.image.pullPolicy }} env: diff --git a/HelmChart/public/oneuptime/templates/probe.yaml b/HelmChart/public/oneuptime/templates/probe.yaml index 1cba323eeb..07648ee851 100644 --- a/HelmChart/public/oneuptime/templates/probe.yaml +++ b/HelmChart/public/oneuptime/templates/probe.yaml @@ -1,8 +1,8 @@ {{- range $key, $val := $.Values.probes }} # OneUptime probe Deployment -{{- $probeEnv := dict "PORT" $.Values.port.probe "PROBE_API_URL" (include "oneuptime.env.probe-api-url" $) "PROBE_NAME" $val.name "PROBE_DESCRIPTION" $val.description "PROBE_MONITORING_WORKERS" $val.monitoringWorkers "PROBE_KEY" $val.key "PROBE_MONITOR_FETCH_LIMIT" $val.monitorFetchLimit -}} -{{- $probeDeploymentArgs :=dict "ServiceName" (printf "probe-%s" $key) "Port" $.Values.port.probe "Release" $.Release "Values" $.Values "Env" $probeEnv -}} +{{- $probeEnv := dict "PORT" $.Values.port.probe "PROBE_API_URL" (include "oneuptime.env.probe-api-url" $) "PROBE_NAME" $val.name "PROBE_DESCRIPTION" $val.description "PROBE_MONITORING_WORKERS" $val.monitoringWorkers "PROBE_KEY" $val.key "PROBE_MONITOR_FETCH_LIMIT" $val.monitorFetchLimit "ONEUPTIME_SECRET" $.Values.secrets.oneuptime -}} +{{- $probeDeploymentArgs :=dict "ServiceName" (printf "probe-%s" $key) "Port" $.Values.port.probe "Release" $.Release "Values" $.Values "Env" $probeEnv "ImageName" "probe" -}} {{- include "oneuptime.deployment" $probeDeploymentArgs }} ---