Skip to content

Commit bfadc30

Browse files
Merge pull request #322 from devtron-labs/trivy-pg
feat: shifted the database configurations to global level
2 parents a06db1d + ff40162 commit bfadc30

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

charts/security/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ maintainers:
1515
1616
sources:
1717
- https://github.com/devtron-labs/charts
18-
version: 0.2.1
19-
appVersion: "0.2.1"
18+
version: 0.2.2
19+
appVersion: "0.2.2"
2020
dependencies:
2121
- name: clair
2222
version: "0.x.x"

charts/security/templates/image-scanner.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ metadata:
3030
{{ toYaml .labels | indent 4 }}
3131
{{- end}}
3232
data:
33+
{{- if $.Values.global.dbConfig }}
34+
{{ toYaml $.Values.global.dbConfig | indent 2 }}
35+
{{- end}}
3336
{{- if .configs}}
3437
{{ toYaml .configs | indent 2 }}
3538
---
@@ -148,10 +151,10 @@ spec:
148151
envFrom:
149152
- configMapRef:
150153
name: image-scanner-cm
151-
- configMapRef:
152-
name: devtron-common-cm
153154
- secretRef:
154155
name: image-scanner-secret
156+
- configMapRef:
157+
name: devtron-common-cm
155158
{{- if .resources }}
156159
resources:
157160
{{ toYaml .resources | indent 12 }}

charts/security/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ global:
1010
# effect: "NoSchedule"
1111
# imagePullSecrets:
1212
# - name: yoursecret
13+
dbConfig:
14+
PG_ADDR: postgresql-postgresql.devtroncd
15+
PG_PORT: "5432"
16+
PG_USER: postgres
17+
PG_DATABASE: orchestrator
18+
1319
imageScanner:
1420
healthPort: 8080
1521
configs:
1622
CLAIR_ADDR: clair.devtroncd:6060
1723
CLIENT_ID: client-2
1824
NATS_SERVER_HOST: nats://devtron-nats.devtroncd:4222
19-
PG_ADDR: postgresql-postgresql.devtroncd
20-
PG_DATABASE: orchestrator
2125
PG_LOG_QUERY: "false"
22-
PG_PORT: "5432"
23-
PG_USER: postgres
2426
# secrets:
2527
# PG_PASSWORD: "devtron"
2628

@@ -36,6 +38,8 @@ imageScanner:
3638
clair:
3739
enabled: false
3840
fullnameOverride: clair
41+
config:
42+
PG_DATABASE: clairv4
3943
extraEnv:
4044
- name: CLAIR_CONF
4145
value: /etc/clair/config.yaml

0 commit comments

Comments
 (0)