mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Update secret values in HelmChart templates
This commit is contained in:
@@ -74,15 +74,24 @@
|
|||||||
value: {{ printf "true" | squote }}
|
value: {{ printf "true" | squote }}
|
||||||
|
|
||||||
- name: ONEUPTIME_SECRET
|
- name: ONEUPTIME_SECRET
|
||||||
|
{{- if $.Values.oneuptimeSecret }}
|
||||||
|
value: {{ $.Values.oneuptimeSecret }}
|
||||||
|
{{- else }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||||
key: oneuptime-secret
|
key: oneuptime-secret
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
- name: ENCRYPTION_SECRET
|
- name: ENCRYPTION_SECRET
|
||||||
|
{{- if $.Values.encryptionSecret }}.
|
||||||
|
value: {{ $.Values.encryptionSecret }}
|
||||||
|
{{- else }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||||
key: encryption-secret
|
key: encryption-secret
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
- name: CLICKHOUSE_USER
|
- name: CLICKHOUSE_USER
|
||||||
value: {{ $.Values.clickhouse.auth.username }}
|
value: {{ $.Values.clickhouse.auth.username }}
|
||||||
|
|||||||
@@ -37,10 +37,14 @@ spec:
|
|||||||
- name: PROBE_MONITORING_WORKERS
|
- name: PROBE_MONITORING_WORKERS
|
||||||
value: {{ $val.monitoringWorkers | squote }}
|
value: {{ $val.monitoringWorkers | squote }}
|
||||||
- name: PROBE_KEY
|
- name: PROBE_KEY
|
||||||
|
{{- if $val.key }}
|
||||||
|
value: {{ $val.key }}
|
||||||
|
{{- else }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
name: {{ printf "%s-%s" $.Release.Name "secrets" }}
|
||||||
key: {{printf "probe-%s" $key}}
|
key: {{printf "probe-%s" $key}}
|
||||||
|
{{- end }}
|
||||||
- name: PROBE_MONITOR_FETCH_LIMIT
|
- name: PROBE_MONITOR_FETCH_LIMIT
|
||||||
value: {{ $val.monitorFetchLimit | squote }}
|
value: {{ $val.monitorFetchLimit | squote }}
|
||||||
- name: ONEUPTIME_SECRET
|
- name: ONEUPTIME_SECRET
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ global:
|
|||||||
host: localhost
|
host: localhost
|
||||||
httpProtocol: http
|
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.
|
# (Optional): You usually do not need to set this if you're self hosting.
|
||||||
openTelemetryCollectorHost:
|
openTelemetryCollectorHost:
|
||||||
fluentdHost:
|
fluentdHost:
|
||||||
@@ -124,11 +128,13 @@ probes:
|
|||||||
description: "Probe"
|
description: "Probe"
|
||||||
monitoringWorkers: 3
|
monitoringWorkers: 3
|
||||||
monitorFetchLimit: 10
|
monitorFetchLimit: 10
|
||||||
|
key:
|
||||||
# two:
|
# two:
|
||||||
# name: "Probe 2"
|
# name: "Probe 2"
|
||||||
# description: "Probe 2"
|
# description: "Probe 2"
|
||||||
# monitoringWorkers: 3
|
# monitoringWorkers: 3
|
||||||
# monitorFetchLimit: 10
|
# monitorFetchLimit: 10
|
||||||
|
# key:
|
||||||
|
|
||||||
port:
|
port:
|
||||||
app: 3002
|
app: 3002
|
||||||
|
|||||||
@@ -21,5 +21,4 @@ sudo docker run --net=host --rm \
|
|||||||
--volume=$(pwd)$DATABASE_RESTORE_DIRECTORY:/var/lib/postgresql/data \
|
--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
|
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"
|
echo "Restore Completed"
|
||||||
Reference in New Issue
Block a user