add oneuptime secret to probe

This commit is contained in:
Simon Larsen 2023-09-27 12:21:29 +00:00
parent 666de177c8
commit ac0bc23e1a
2 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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 }}
---