Skip to content

Commit f1875c7

Browse files
committed
added health endpoints and updated deployment configs
1 parent 7a9d985 commit f1875c7

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

deployment/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ helm template . \
3838
--set db.mongodbPassword=<your-mongodb-password> \
3939
--set db.mongodbDatabase=artifacts \
4040
--set db.mongodbAdminPassword=<your-mongodb-admin-password> \
41+
--set config.gitlabGroupId=<gitlabGroupId> \
4142
| oc apply -f -
4243
```
4344

@@ -53,5 +54,6 @@ It accepts the following variables
5354
| `db.mongodbPassword` | Application user password for MongoDB |
5455
| `db.mongodbDatabase` | Application database name |
5556
| `db.mongodbAdminPassword` | Admin password for MongoDB |
57+
| `config.gitlabGroupId` | Gitlab group ID containing engagement projects |
5658

5759
This will spin up all of the usual resources that this service needs in production, plus a `BuildConfig` configured to build it from source from the Git repository specified. To trigger this build, use `oc start-build lodestar-artifacts`. To trigger a build from the source code on your machine, use `oc start-build lodestar-artifacts --from-dir=. -F`

deployment/templates/deploymentconfig.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ spec:
2929
containers:
3030
- envFrom:
3131
- secretRef:
32-
name: lodestar-backend-configuration
32+
name: lodestar-artifacts-configuration
3333
env:
34-
- name: LODESTAR_BACKEND_GIT_TAG
34+
- name: LODESTAR_ARTIFACTS_GIT_TAG
3535
value: {{ .Values.imageTag }}
3636
readinessProbe:
3737
httpGet:

deployment/templates/secret.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ stringData:
1111
MONGODB_PASSWORD: "{{ .Values.db.mongodbPassword }}"
1212
MONGODB_DATABASE: "{{ .Values.db.mongodbDatabase }}"
1313
MONGODB_ADMIN_PASSWORD: "{{ .Values.db.mongodbAdminPassword }}"
14+
GROUP_PARENT_ID: "{{ .Values.config.gitlabGroupId }}"
1415
{{- end }}

deployment/values-dev.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,7 @@ api:
2424
gitlab: http://gitlab.com
2525

2626
tokens:
27-
gitlab: nope
27+
gitlab: nope
28+
29+
config:
30+
gitlabGroupId: 0

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
<groupId>io.quarkus</groupId>
6868
<artifactId>quarkus-rest-client</artifactId>
6969
</dependency>
70+
<!-- Health -->
71+
<dependency>
72+
<groupId>io.quarkus</groupId>
73+
<artifactId>quarkus-smallrye-health</artifactId>
74+
</dependency>
7075
<!-- Other -->
7176
<dependency>
7277
<groupId>io.quarkus</groupId>

0 commit comments

Comments
 (0)