Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion charts/hdx-oss-v2/templates/mongodb-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.mongodb.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -42,4 +43,5 @@ spec:
targetPort: {{ .Values.mongodb.port }}
selector:
{{- include "hdx-oss.selectorLabels" . | nindent 4 }}
app: mongodb
app: mongodb
{{- end }}
13 changes: 11 additions & 2 deletions charts/hdx-oss-v2/tests/mongodb-deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ suite: Test MongoDB Deployment
templates:
- mongodb-deployment.yaml
tests:
- it: should render both deployment and service
- it: should render both deployment and service when enabled
set:
mongodb:
image: mongo:5.0.14-focal
port: 27017
enabled: true
asserts:
- hasDocuments:
count: 2
Expand All @@ -15,4 +16,12 @@ tests:
of: Deployment
- documentIndex: 1
isKind:
of: Service
of: Service

- it: should not render any documents when disabled
set:
mongodb:
enabled: false
asserts:
- hasDocuments:
count: 0
1 change: 1 addition & 0 deletions charts/hdx-oss-v2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ hyperdx:
mongodb:
image: "mongo:5.0.14-focal"
port: 27017
enabled: true

clickhouse:
image: "clickhouse/clickhouse-server:24-alpine"
Expand Down