Update secret values in HelmChart templates

This commit is contained in:
Simon Larsen 2024-03-17 12:14:26 +00:00
parent e7bbe30a88
commit 80c39d8e64
No known key found for this signature in database
GPG key ID: AB45983AA9C81CDE
4 changed files with 19 additions and 1 deletions

View file

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

View file

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

View file

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

View file

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