Skip to content

Commit 105d93d

Browse files
committed
Revisted db configuration parts.
1 parent 0de53a6 commit 105d93d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

helm-chart/eoapi-notifier/templates/configmap.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ data:
1212
{{- range .Values.config.sources}}
1313
- type: {{.type}}
1414
config:
15+
{{- if and (eq .type "pgstac") .config.connection.existingSecret}}
16+
{{- $config := omit .config "connection"}}
17+
{{- toYaml $config | nindent 10}}
18+
{{- else}}
1519
{{- toYaml .config | nindent 10}}
20+
{{- end}}
1621
{{- end}}
1722
1823
outputs:

helm-chart/eoapi-notifier/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ config:
5757
host: "host"
5858
port: "port"
5959
database: "dbname"
60+
61+
# Alternative: Direct connection config (less secure for passwords)
62+
# host: "localhost"
63+
# port: 5432
64+
# database: "pgstac"
65+
# user: "postgres"
66+
# password: "your-password"
67+
6068
# Optional pgSTAC settings:
6169
# channel: "pgstac_items_change"
6270
# tables: ["items", "collections"]

0 commit comments

Comments
 (0)