Skip to content

Commit

Permalink
fix: acceptance - revert back to port instead of portNumber
Browse files Browse the repository at this point in the history
Also adding an extra matchLabel in the default values
  • Loading branch information
pmauduit committed Dec 5, 2024
1 parent 3596760 commit 6afbb7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acceptance-tests/templates/prometheus-pm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
podMetricsEndpoints:
- interval: {{ .Values.podMonitor.frequency }}
path: {{ .Values.podMonitor.httpPath }}
portNumber: {{ .Values.podMonitor.httpPort }}
port: {{ .Values.podMonitor.httpPort }}
selector:
matchLabels:
{{- with .Values.podMonitor.matchLabels }}
Expand Down
3 changes: 2 additions & 1 deletion acceptance-tests/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ podMonitor:
# match the pod where prometheusData.txt is hosted
matchLabels:
app.kubernetes.io/name: apache-nas
app.kubernetes.io/instance: apache-nas
httpPath: /public/non-regression/report/export/prometheusData.txt
httpPort: 80
httpPort: http
# Should be set to a value coherent with the `job.schedule` parameter above.
frequency: 1d

0 comments on commit 6afbb7c

Please sign in to comment.