Skip to content

Commit 14bdb89

Browse files
committed
chart 0.0.3: granular creds (host/username/password/port)
1 parent a4e8471 commit 14bdb89

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ jobs:
5454
env:
5555
DOCKER_IMAGE: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-app
5656
run: |
57-
docker tag ${DOCKER_IMAGE}:${{ github.sha }} ${DOCKER_IMAGE}:0.0.2
58-
docker push ${DOCKER_IMAGE}:0.0.2
57+
docker tag ${DOCKER_IMAGE}:${{ github.sha }} ${DOCKER_IMAGE}:0.0.3
58+
docker push ${DOCKER_IMAGE}:0.0.3
5959
6060
- name: Chart | Push
6161
uses: appany/[email protected]
6262
with:
6363
name: mongodb-probe
6464
repository: ${{ github.repository }}
65-
tag: 0.0.2
65+
tag: 0.0.3
6666
path: chart/mongodb-probe # Default charts/{name}
6767
registry: ghcr.io
6868
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.2
18+
version: 0.0.3
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: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ data:
1010
spring.ssl.bundle.pem.mongodb-ssl-bundle.reload-on-update=true
1111
spring.ssl.bundle.pem.mongodb-ssl-bundle.truststore.certificate=file:/workspace/config/tls/{{ .Values.mongodb.tlsSecretCaKey }}
1212
13-
spring.data.mongodb.uri={{ .Values.mongodb.uri }}
13+
1414
spring.data.mongodb.ssl.enabled=true
1515
spring.data.mongodb.ssl.bundle=mongodb-ssl-bundle
1616
17+
#spring.data.mongodb.uri=.Values.mongodb.uri
18+
19+
spring.data.mongodb.host={{ .Values.mongodb.host }}
20+
spring.data.mongodb.port={{ .Values.mongodb.port }}
21+
spring.data.mongodb.username={{ .Values.mongodb.username }}
22+
spring.data.mongodb.password={{ .Values.mongodb.password }}
23+
spring.data.mongodb.database={{ .Values.mongodb.database }}
24+
1725
otel.logs.exporter=none
1826
otel.metrics.exporter=none
1927

chart/mongodb-probe/values.yaml

Lines changed: 7 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: ""
11+
tag: "0.0.3"
1212

1313
imagePullSecrets: []
1414
nameOverride: ""
@@ -105,8 +105,12 @@ affinity: {}
105105
mongodb:
106106
tlsSecretName: mysecret
107107
tlsSecretCaKey: ca.crt
108-
109-
uri: mongodb://admin:password@localhost:27017/mydb
108+
database: mydb
109+
host: localhost
110+
port: '27017'
111+
username: username
112+
password: password
113+
110114

111115
otlp:
112116
serviceName: probe-for-mongodb

0 commit comments

Comments
 (0)