Skip to content

Commit

Permalink
Merge pull request #267 from stakater/label
Browse files Browse the repository at this point in the history
matchlabel fixed
  • Loading branch information
rasheedamir authored Aug 9, 2023
2 parents 4875a93 + 5a29809 commit a883c3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

All notable changes to this project will be documented here.

### v2.1.20
- fix: Matchlabel fixed for service monitor [PR-267](https://github.com/stakater/application/pull/267)

### v2.1.19
- Fix: Reverts [PR-240](https://github.com/stakater/application/pull/240), It can already be configured via `paths` [PR-247](https://github.com/stakater/application/pull/247)

Expand Down
4 changes: 2 additions & 2 deletions application/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ metadata:
spec:
selector:
matchLabels:
app: {{ template "application.name" . }}
{{ include "application.selectorLabels" . | indent 6 }}
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
endpoints:
{{ toYaml .Values.serviceMonitor.endpoints | indent 4 }}
{{- end }}
{{- end }}

0 comments on commit a883c3a

Please sign in to comment.