mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
add oneuptime secret to probe
This commit is contained in:
parent
666de177c8
commit
ac0bc23e1a
@ -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:
|
||||
|
@ -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 }}
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user