Skip to content

Commit

Permalink
Make monitor test more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbublik committed Oct 1, 2024
1 parent a929b17 commit 04c7323
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if (((.Values.tests).serviceMonitor).enabled) }}
{{- if .Values.tests.monitoring.enabled }}
# ---------------------------------------------------------------------
# -- A config map with a script to test serviceMonitor
# -- A config map with a script to test monitoring
# ---------------------------------------------------------------------
---
apiVersion: v1
Expand Down Expand Up @@ -40,9 +40,9 @@ spec:
volumeMounts:
- name: test-script
readOnly: true
mountPath: /test_service_monitor
subPath: test_service_monitor
mountPath: /test_monitoring
subPath: test_monitoring
args:
- /test.sh
- /test_monitoring
restartPolicy: Never
{{- end}}
5 changes: 2 additions & 3 deletions charts/db-instances/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ postgresql:
# -- don't have an intention of testing the helm chart
# ---------------------------------------------------------------------
tests:
# Test that service monitor can be created
# and metrics can be scraped by Prometheus
serviceMonitor:
# Test that the metrics can be scraped by Prometheus
monitoring:
enabled: false

0 comments on commit 04c7323

Please sign in to comment.