@@ -2,24 +2,16 @@ introspection_addr: {{ .Values.config.introspection_addr }}
2
2
http_listen_addr: { { .Values.config.http_listen_addr } }
3
3
log_level: { { .Values.config.log_level } }
4
4
indexer:
5
- { {- if .Values.config.postgresPassword } }
6
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } password={ { .Values.config.postgresPassword } } sslmode=disable"
7
- { {- else } }
8
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } sslmode=disable"
9
- { {- end } }
5
+ { {- include " clair.dbconnstring" . } }
10
6
scanlock_retry: { { .Values.config.indexer.scanlock_retry } }
11
7
layer_scan_concurrency: { { .Values.config.indexer.layer_scan_concurrency } }
12
8
migrations: { { .Values.config.indexer.migrations } }
13
9
{ {- if .Values.config.indexer.extraConfig } }
14
10
{ {- toYaml .Values.config.indexer.extraConfig | nindent 2 } }
15
11
{ {- end } }
16
12
matcher:
13
+ { {- include " clair.dbconnstring" . } }
17
14
indexer_addr: "{ { .Values.config.matcher.indexer_addr } }"
18
- { {- if .Values.config.postgresPassword } }
19
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } password={ { .Values.config.postgresPassword } } sslmode=disable"
20
- { {- else } }
21
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } sslmode=disable"
22
- { {- end } }
23
15
max_conn_pool: { { .Values.config.matcher.max_conn_pool } }
24
16
run: ""
25
17
migrations: { { .Values.config.matcher.migrations } }
@@ -31,11 +23,7 @@ matcher:
31
23
{ {- toYaml .Values.config.matcher.extraConfig | nindent 2 } }
32
24
{ {- end } }
33
25
notifier:
34
- { {- if .Values.config.postgresPassword } }
35
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } password={ { .Values.config.postgresPassword } } sslmode=disable"
36
- { {- else } }
37
- connstring: "host={ { .Values.config.postgresHost } } port={ { .Values.config.postgresPort } } dbname={ { .Values.config.postgresdbname } } user={ { .Values.config.postgresUser } } sslmode=disable"
38
- { {- end } }
26
+ { {- include " clair.dbconnstring" . } }
39
27
delivery_interval: { { .Values.config.notifier.delivery_interval } }
40
28
poll_interval: { { .Values.config.notifier.poll_interval } }
41
29
migrations: { { .Values.config.notifier.migrations } }
0 commit comments