mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-11 19:56:44 +00:00
Update secret values in HelmChart templates
This commit is contained in:
parent
e7bbe30a88
commit
80c39d8e64
4 changed files with 19 additions and 1 deletions
|
|
@ -74,15 +74,24 @@
|
|||
value: {{ printf "true" | squote }}
|
||||
|
||||
- name: ONEUPTIME_SECRET
|
||||
{{- if $.Values.oneuptimeSecret }}
|
||||
value: {{ $.Values.oneuptimeSecret }}
|
||||
{{- else }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||
key: oneuptime-secret
|
||||
{{- end }}
|
||||
|
||||
- name: ENCRYPTION_SECRET
|
||||
{{- if $.Values.encryptionSecret }}.
|
||||
value: {{ $.Values.encryptionSecret }}
|
||||
{{- else }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||
key: encryption-secret
|
||||
{{- end }}
|
||||
|
||||
- name: CLICKHOUSE_USER
|
||||
value: {{ $.Values.clickhouse.auth.username }}
|
||||
|
|
|
|||
|
|
@ -37,10 +37,14 @@ spec:
|
|||
- name: PROBE_MONITORING_WORKERS
|
||||
value: {{ $val.monitoringWorkers | squote }}
|
||||
- name: PROBE_KEY
|
||||
{{- if $val.key }}
|
||||
value: {{ $val.key }}
|
||||
{{- else }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||
key: {{printf "probe-%s" $key}}
|
||||
{{- end }}
|
||||
- name: PROBE_MONITOR_FETCH_LIMIT
|
||||
value: {{ $val.monitorFetchLimit | squote }}
|
||||
- name: ONEUPTIME_SECRET
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@ global:
|
|||
host: localhost
|
||||
httpProtocol: http
|
||||
|
||||
# (Optional): You usually do not need to set this if you're self hosting. If you do set it, set it to a long random value.
|
||||
oneuptimeSecret:
|
||||
encryptionSecret:
|
||||
|
||||
# (Optional): You usually do not need to set this if you're self hosting.
|
||||
openTelemetryCollectorHost:
|
||||
fluentdHost:
|
||||
|
|
@ -124,11 +128,13 @@ probes:
|
|||
description: "Probe"
|
||||
monitoringWorkers: 3
|
||||
monitorFetchLimit: 10
|
||||
key:
|
||||
# two:
|
||||
# name: "Probe 2"
|
||||
# description: "Probe 2"
|
||||
# monitoringWorkers: 3
|
||||
# monitorFetchLimit: 10
|
||||
# key:
|
||||
|
||||
port:
|
||||
app: 3002
|
||||
|
|
|
|||
|
|
@ -21,5 +21,4 @@ sudo docker run --net=host --rm \
|
|||
--volume=$(pwd)$DATABASE_RESTORE_DIRECTORY:/var/lib/postgresql/data \
|
||||
postgres:latest /usr/bin/pg_restore --dbname=postgresql://$DATABASE_RESTORE_USERNAME:$DATABASE_RESTORE_PASSWORD@$DATABASE_RESTORE_HOST:$DATABASE_RESTORE_PORT/$DATABASE_RESTORE_NAME /var/lib/postgresql/data/$DATABASE_RESTORE_FILENAME
|
||||
|
||||
|
||||
echo "Restore Completed"
|
||||
Loading…
Add table
Reference in a new issue