Skip to content

Commit

Permalink
Fixed endpoints in servicemonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Whyeasy committed Jul 2, 2020
1 parent 5fcea0b commit 0660b3f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/jira-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: jira-exporter
description: A Helm chart to deploy [jira-exporter](https://github.com/Whyeasy/jira-exporter)
type: application
version: 0.1.3
version: 0.1.4
appVersion: 0.0.3
4 changes: 2 additions & 2 deletions charts/jira-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jira-exporter
=============
A Helm chart to deploy [jira-exporter](https://github.com/Whyeasy/jira-exporter)

Current chart version is `0.1.3`
Current chart version is `0.1.4`



Expand All @@ -28,7 +28,7 @@ Current chart version is `0.1.3`
| service.port | int | `8080` | Service port for the exporter |
| service.type | string | `"ClusterIP"` | Serive type for the exporter |
| serviceMonitor.enabled | bool | `false` | Deploy a service monitor along with the exporter. |
| serviceMonitor.endpoints | list | `[]` | Specify a list of Endpoint objects |
| serviceMonitor.endpoints | list | `[]` | Specify addiotnal Endpoint objects |
| serviceMonitor.interval | string | `""` | Set scraping interval for the service monitor. |
| serviceMonitor.scrapeTimeout | string | `""` | Set scraping time out for the service monitor. |
| strategy.type | string | `"RollingUpdate"` | Strategy for deploying containers |
Expand Down
3 changes: 1 addition & 2 deletions charts/jira-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ spec:
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- with .Values.serviceMonitor.endpoints }}
endpoints:
{{- toYaml . | nindent 6 }}
{{- toYaml . | nindent 2 }}
{{- end }}
selector:
matchLabels:
Expand Down
2 changes: 1 addition & 1 deletion charts/jira-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ serviceMonitor:
interval: ""
# serviceMonitor.scrapeTimeout -- Set scraping time out for the service monitor.
scrapeTimeout: ""
# serviceMonitor.endpoints -- Specify a list of Endpoint objects
# serviceMonitor.endpoints -- Specify addiotnal Endpoint objects
endpoints: []

0 comments on commit 0660b3f

Please sign in to comment.