Skip to content

Commit

Permalink
don't deploy service monitor on functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed Aug 19, 2024
1 parent b6630fe commit b81e9da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.monitoring.enabled -}}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand All @@ -9,4 +10,5 @@ spec:
port: metrics
jobLabel: app.kubernetes.io/name
selector:
matchLabels: {{ include "coral-credits.selectorLabels" . | nindent 6 }}
matchLabels: {{ include "coral-credits.selectorLabels" . | nindent 6 }}
{{- end }}
3 changes: 2 additions & 1 deletion tools/functional_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ helm upgrade $RELEASE_NAME ./charts \
--set-string image.tag=${GITHUB_SHA::7} \
--set settings.superuserPassword=$TEST_PASSWORD \
--set ingress.host=$SITE \
--set ingress.tls.enabled=false
--set ingress.tls.enabled=false \
--set monitoring.enabled=false

# Wait for rollout
kubectl rollout status deployment/$RELEASE_NAME -n $NAMESPACE --timeout=300s -w
Expand Down

0 comments on commit b81e9da

Please sign in to comment.