Skip to content

Commit

Permalink
Fix report-server init when reading from env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael da Fonseca <[email protected]>
  • Loading branch information
rsafonseca committed Feb 7, 2025
1 parent c160f62 commit 4bb0a9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions charts/reports-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ spec:
{{- end }}
- --etcdEndpoints=https://etcd-0.etcd.{{ $.Release.Namespace }}:2379,https://etcd-1.etcd.{{ $.Release.Namespace }}:2379,https://etcd-2.etcd.{{ $.Release.Namespace }}:2379
{{- else }}
- --dbhost=${DB_HOST}
- --dbport=${DB_PORT}
- --dbuser=${DB_USER}
- --dbpassword=${DB_PASSWORD}
- --dbname=${DB_DATABASE}
- --dbhost=$(DB_HOST)
- --dbport=$(DB_PORT)
- --dbuser=$(DB_USER)
- --dbpassword=$(DB_PASSWORD)
- --dbname=$(DB_DATABASE)
- --dbsslmode={{ .Values.config.db.sslmode }}
- --dbsslrootcert={{ .Values.config.db.sslrootcert }}
- --dbsslkey={{ .Values.config.db.sslkey }}
Expand Down
10 changes: 5 additions & 5 deletions config/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ spec:
containers:
- name: reports-server
args:
- --dbhost=${DB_HOST}
- --dbport=${DB_PORT}
- --dbuser=${DB_USER}
- --dbpassword=${DB_PASSWORD}
- --dbname=${DB_DATABASE}
- --dbhost=$(DB_HOST)
- --dbport=$(DB_PORT)
- --dbuser=$(DB_USER)
- --dbpassword=$(DB_PASSWORD)
- --dbname=$(DB_DATABASE)
- --dbsslmode=disable
- --dbsslrootcert=
- --dbsslkey=
Expand Down

0 comments on commit 4bb0a9f

Please sign in to comment.