Skip to content

Commit 869731d

Browse files
authored
fix: update charts to mount ca instead (#137)
* fix: update charts to mount ca instead * chore: bump * chore: bump * chore: bump
1 parent 915d702 commit 869731d

File tree

10 files changed

+59
-29
lines changed

10 files changed

+59
-29
lines changed

mojaloop/finance-portal/Chart.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 5.1.0
18+
version: 5.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "5.1.0"
24+
appVersion: "5.1.1"
2525
dependencies:
2626
- name: common
2727
repository: "file://../common"
@@ -49,7 +49,7 @@ dependencies:
4949
tags:
5050
- mojaloop
5151
- reporting-hub-bop-api-svc
52-
version: 4.1.0
52+
version: 4.1.2
5353
- name: reporting-legacy-api
5454
condition: reporting-legacy-api.enabled
5555
repository: "file://../reporting-legacy-api"
@@ -63,7 +63,7 @@ dependencies:
6363
tags:
6464
- mojaloop
6565
- reporting-events-processor-svc
66-
version: 3.5.0
66+
version: 3.5.1
6767
- name: reporting-hub-bop-role-ui
6868
condition: reporting-hub-bop-role-ui.enabled
6969
repository: "file://../reporting-hub-bop-role-ui"
@@ -105,4 +105,4 @@ dependencies:
105105
tags:
106106
- mojaloop
107107
- reporting-aggregator-svc
108-
version: 1.0.5
108+
version: 1.0.6

mojaloop/reporting-aggregator-svc/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
description: Reporting Aggregator Service
33
name: reporting-aggregator-svc
4-
version: 1.0.5
5-
appVersion: "0.0.7"
4+
version: 1.0.6
5+
appVersion: "0.0.9"
66
home: http://mojaloop.io
77
icon: http://mojaloop.io/images/logo.png
88
sources:

mojaloop/reporting-aggregator-svc/templates/deployment.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ spec:
7979
volumeMounts:
8080
- name: {{ template "common.names.fullname" . }}-config-volume
8181
mountPath: /opt/app/config
82+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
83+
- name: mongo-ca
84+
mountPath: /opt/app/mongo-ca
85+
readOnly: true
86+
{{- end }}
8287
env:
8388
- name: LOG_LEVEL
8489
value: {{ .Values.config.log_level | quote }}
@@ -145,11 +150,8 @@ spec:
145150
- name: REPORTING_MONGO_DB_SSL_VERIFY
146151
value: '{{ include "common.backends.reportingEventsDB.ssl.verify" . }}'
147152
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
148-
- name: REPORTING_MONGO_DB_SSL_CA
149-
valueFrom:
150-
secretKeyRef:
151-
name: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
152-
key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
153+
- name: REPORTING_MONGO_DB_SSL_CA_FILE_PATH
154+
value: "/opt/app/mongo-ca/mongo-ca.pem"
153155
{{- end }}
154156
{{- end }}
155157
volumes:
@@ -159,3 +161,11 @@ spec:
159161
items:
160162
- key: default.json
161163
path: default.json
164+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
165+
- name: mongo-ca
166+
secret:
167+
secretName: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
168+
items:
169+
- key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
170+
path: mongo-ca.pem
171+
{{- end }}

mojaloop/reporting-aggregator-svc/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ containerSecurityContext:
137137
image:
138138
registry: docker.io
139139
repository: mojaloop/reporting-aggregator-svc
140-
tag: v0.0.7
140+
tag: v0.0.9
141141
## Specify a imagePullPolicy
142142
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
143143
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images

mojaloop/reporting-events-processor-svc/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
description: Reporting Events Processor
33
name: reporting-events-processor-svc
4-
version: 3.5.0
5-
appVersion: "3.5.0"
4+
version: 3.5.1
5+
appVersion: "3.5.1"
66
home: http://mojaloop.io
77
icon: http://mojaloop.io/images/logo.png
88
sources:

mojaloop/reporting-events-processor-svc/templates/deployment.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ spec:
7979
volumeMounts:
8080
- name: {{ template "common.names.fullname" . }}-config-volume
8181
mountPath: /opt/app/config
82+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
83+
- name: mongo-ca
84+
mountPath: /opt/app/mongo-ca
85+
readOnly: true
86+
{{- end }}
8287
env:
8388
# Event Store
8489
- name: EVENT_STORE_DB_HOST
@@ -110,11 +115,8 @@ spec:
110115
- name: EVENT_STORE_DB_SSL_VERIFY
111116
value: '{{ include "common.backends.reportingEventsDB.ssl.verify" . }}'
112117
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
113-
- name: EVENT_STORE_DB_SSL_CA
114-
valueFrom:
115-
secretKeyRef:
116-
name: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
117-
key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
118+
- name: EVENT_STORE_DB_SSL_CA_FILE_PATH
119+
value: "/opt/app/mongo-ca/mongo-ca.pem"
118120
{{- end }}
119121
{{- end }}
120122
{{- if .Values.readinessProbe.enabled }}
@@ -140,3 +142,11 @@ spec:
140142
items:
141143
- key: default.json
142144
path: default.json
145+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
146+
- name: mongo-ca
147+
secret:
148+
secretName: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
149+
items:
150+
- key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
151+
path: mongo-ca.pem
152+
{{- end }}

mojaloop/reporting-events-processor-svc/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ containerSecurityContext:
110110
image:
111111
registry: docker.io
112112
repository: mojaloop/reporting-events-processor-svc
113-
tag: v3.5.0
113+
tag: v3.5.1
114114
## Specify a imagePullPolicy
115115
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
116116
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images

mojaloop/reporting-hub-bop-api-svc/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
description: Reporting API service
33
name: reporting-hub-bop-api-svc
4-
version: 4.1.0
5-
appVersion: "4.1.0"
4+
version: 4.1.2
5+
appVersion: "4.1.2"
66
home: http://mojaloop.io
77
icon: http://mojaloop.io/images/logo.png
88
sources:

mojaloop/reporting-hub-bop-api-svc/templates/deployment.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ spec:
106106
volumeMounts:
107107
- name: {{ template "common.names.fullname" . }}-config-volume
108108
mountPath: /opt/reporting/config
109+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
110+
- name: mongo-ca
111+
mountPath: /opt/app/mongo-ca
112+
readOnly: true
113+
{{- end }}
109114
env:
110115
- name: NPM_CONFIG_UPDATE_NOTIFIER
111116
value: 'false'
@@ -157,11 +162,8 @@ spec:
157162
- name: EVENT_STORE_DB_SSL_VERIFY
158163
value: '{{ include "common.backends.reportingEventsDB.ssl.verify" . }}'
159164
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
160-
- name: EVENT_STORE_DB_SSL_CA
161-
valueFrom:
162-
secretKeyRef:
163-
name: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
164-
key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
165+
- name: EVENT_STORE_DB_SSL_CA_FILE_PATH
166+
value: "/opt/app/mongo-ca/mongo-ca.pem"
165167
{{- end }}
166168
{{- end }}
167169
{{- if .Values.auth }}
@@ -175,3 +177,11 @@ spec:
175177
items:
176178
- key: production.json
177179
path: production.json
180+
{{- if (include "common.backends.reportingEventsDB.ssl.caSecret.name" .) }}
181+
- name: mongo-ca
182+
secret:
183+
secretName: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.name" . }}'
184+
items:
185+
- key: '{{ include "common.backends.reportingEventsDB.ssl.caSecret.key" . }}'
186+
path: mongo-ca.pem
187+
{{- end }}

mojaloop/reporting-hub-bop-api-svc/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ containerSecurityContext:
149149
image:
150150
registry: docker.io
151151
repository: mojaloop/reporting-hub-bop-api-svc
152-
tag: v4.1.0
152+
tag: v4.1.2
153153
## Specify a imagePullPolicy
154154
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
155155
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images

0 commit comments

Comments
 (0)