Skip to content

Commit 0cb5fbe

Browse files
committed
rename values props for ca, cert and keys
1 parent 4aca710 commit 0cb5fbe

File tree

6 files changed

+31
-11
lines changed

6 files changed

+31
-11
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
env:
5656
DOCKER_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-app
5757
run: |
58-
docker tag ${DOCKER_IMAGE}:${{ github.sha }} ${DOCKER_IMAGE}:0.0.5
59-
docker push ${DOCKER_IMAGE}:0.0.5
58+
docker tag ${DOCKER_IMAGE}:${{ github.sha }} ${DOCKER_IMAGE}:0.0.6
59+
docker push ${DOCKER_IMAGE}:0.0.6
6060
6161
- name: Chart | Push
6262
uses: appany/[email protected]
6363
with:
6464
name: mongodb-probe
6565
repository: ${{ github.repository }}
66-
tag: 0.0.5
66+
tag: 0.0.6
6767
path: chart/mongodb-probe # Default charts/{name}
6868
registry: ghcr.io
6969
registry_username: ${{ github.actor }}

chart/mongodb-probe/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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: 0.0.5
18+
version: 0.0.6
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

chart/mongodb-probe/templates/configmap.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,25 @@ data:
1010
spring.ssl.bundle.pem.mongodb-ssl-bundle.reload-on-update=false
1111
1212
13-
{{- with .Values.mongodb.tlsSecretCaKey }}
13+
{{- with .Values.mongodb.tlsCa }}
1414
spring.ssl.bundle.pem.mongodb-ssl-bundle.truststore.certificate=file:/workspace/config/tls/{{ . }}
1515
{{- end }}
1616
17-
{{- with .Values.mongodb.tlsSecretCertificate }}
18-
spring.ssl.bundle.pem.mongodb-ssl-bundle.keystore.certificate=file:/workspace/config/tls/{{ . }}
17+
{{- with .Values.mongodb.tlsCert }}
18+
spring.ssl.bundle.pem.mongodb-ssl-bundle.truststore.certificate=file:/workspace/config/tls/{{ . }}
1919
{{- end }}
20+
21+
{{- with .Values.mongodb.tlsKey }}
22+
spring.ssl.bundle.pem.mongodb-ssl-bundle.truststore.private-key=file:/workspace/config/tls/{{ . }}
23+
{{- end }}
24+
25+
26+
27+
#spring.ssl.bundle.pem.mongodb-ssl-bundle.keystore.certificate=file:/workspace/config/tls/tlsCertFile
28+
#spring.ssl.bundle.pem.mongodb-ssl-bundle.keystore.private-key=file:/workspace/config/tls/tlsKeyFile
29+
30+
31+
2032
2133
spring.data.mongodb.ssl.enabled=true
2234
spring.data.mongodb.ssl.bundle=mongodb-ssl-bundle

chart/mongodb-probe/values.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
repository: ghcr.io/orange-cloudfoundry/mongodb-probe-app
99
pullPolicy: IfNotPresent
1010
# Overrides the image tag whose default is the chart appVersion.
11-
tag: "0.0.5"
11+
tag: "0.0.6"
1212

1313
imagePullSecrets: []
1414
nameOverride: ""
@@ -104,8 +104,11 @@ affinity: {}
104104
#probe specific default values
105105
mongodb:
106106
tlsSecretName: mysecret
107-
tlsSecretCaKey: ca.crt
108-
#tlsSecretCertificate: tls.crt
107+
tlsCa: ca.crt
108+
tlsCert: tls.crt
109+
# tlsKey: xx
110+
# tlsCertKey: xxx
111+
109112
database: mydb
110113
host: localhost
111114
port: '27017'

cloudfoundry/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 1
33
applications:
4-
- name: po-mongodb-probe
4+
- name: mongodb-probe
55
memory: 900M
66
instances: 2
77
buildpacks:

src/main/resources/application.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ logging:
1010
org.springframework.boot.env: DEBUG
1111
org.springframework.context: DEBUG
1212

13+
spring:
14+
data:
15+
mongodb:
16+
ssl-enabled: true
17+
1318
---
1419
spring:
1520
config:

0 commit comments

Comments
 (0)