Skip to content

Commit

Permalink
add namespaceSelector to service monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahsa committed Feb 28, 2024
1 parent 615874c commit ec729e6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/harbor-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-harbor-client
description: A Helm chart for snappcloud-harbor-client

type: application
version: 0.1.3
version: 0.1.4
appVersion: "0.0.3"
3 changes: 3 additions & 0 deletions clients/harbor-client/charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- port: http
interval: 30s
path: /metrics
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "snappcloud-harbor-client.selectorLabels" . | nindent 6 }}
2 changes: 1 addition & 1 deletion clients/proxy-client/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: snappcloud-proxy-client
description: A Helm chart for snappcloud-proxy-client

type: application
version: 0.1.3
version: 0.1.4
appVersion: "0.0.3"
3 changes: 3 additions & 0 deletions clients/proxy-client/charts/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- port: http
interval: 30s
path: /metrics
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "snappcloud-proxy-client.selectorLabels" . | nindent 6 }}

0 comments on commit ec729e6

Please sign in to comment.