Skip to content

Commit 33d0bec

Browse files
Merge pull request #171 from pierluigilenoci/servicemonitorcaseissue
Fixed the case for serviceMonitor values section
2 parents ef146ac + f202ded commit 33d0bec

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.18.1
2+
version: 6.18.2
33
apiVersion: v2
44
appVersion: 7.5.1
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -35,7 +35,7 @@ kubeVersion: ">=1.9.0-0"
3535
annotations:
3636
artifacthub.io/changes: |
3737
- kind: added
38-
description: Define image repository & pullPolicy on the initContainer wait-for-redis
38+
description: Fixed the case for serviceMonitor values section
3939
links:
4040
- name: Github PR
41-
url: https://github.com/oauth2-proxy/manifests/pull/166
41+
url: https://github.com/oauth2-proxy/manifests/pull/171

helm/oauth2-proxy/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ Parameter | Description | Default
201201
`metrics.port` | Serve Prometheus metrics on this port | `44180`
202202
`metrics.nodePort` | External port for the metrics when service.type is `NodePort` | `nil`
203203
`metrics.service.appProtocol` | application protocol of the metrics port in the service | `http`
204-
`metrics.servicemonitor.enabled` | Enable Prometheus Operator ServiceMonitor | `false`
205-
`metrics.servicemonitor.namespace` | Define the namespace where to deploy the ServiceMonitor resource | `""`
206-
`metrics.servicemonitor.prometheusInstance` | Prometheus Instance definition | `default`
207-
`metrics.servicemonitor.interval` | Prometheus scrape interval | `60s`
208-
`metrics.servicemonitor.scrapeTimeout` | Prometheus scrape timeout | `30s`
209-
`metrics.servicemonitor.labels` | Add custom labels to the ServiceMonitor resource| `{}`
204+
`metrics.serviceMonitor.enabled` | Enable Prometheus Operator ServiceMonitor | `false`
205+
`metrics.serviceMonitor.namespace` | Define the namespace where to deploy the ServiceMonitor resource | `""`
206+
`metrics.serviceMonitor.prometheusInstance` | Prometheus Instance definition | `default`
207+
`metrics.serviceMonitor.interval` | Prometheus scrape interval | `60s`
208+
`metrics.serviceMonitor.scrapeTimeout` | Prometheus scrape timeout | `30s`
209+
`metrics.serviceMonitor.labels` | Add custom labels to the ServiceMonitor resource| `{}`
210210
`extraObjects` | Extra K8s manifests to deploy | `[]`
211211

212212
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
{{- if and .Values.metrics.enabled .Values.metrics.servicemonitor.enabled }}
1+
{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
55
name: {{ template "oauth2-proxy.fullname" . }}
6-
{{- if .Values.metrics.servicemonitor.namespace }}
7-
namespace: {{ .Values.metrics.servicemonitor.namespace }}
6+
{{- if .Values.metrics.serviceMonitor.namespace }}
7+
namespace: {{ .Values.metrics.serviceMonitor.namespace }}
88
{{- else }}
99
namespace: {{ template "oauth2-proxy.namespace" $ }}
1010
{{- end }}
1111
labels:
12-
prometheus: {{ .Values.metrics.servicemonitor.prometheusInstance }}
12+
prometheus: {{ .Values.metrics.serviceMonitor.prometheusInstance }}
1313
app: {{ template "oauth2-proxy.name" . }}
1414
{{- include "oauth2-proxy.labels" . | indent 4 }}
15-
{{- if .Values.metrics.servicemonitor.labels }}
16-
{{ toYaml .Values.metrics.servicemonitor.labels | indent 4}}
15+
{{- if .Values.metrics.serviceMonitor.labels }}
16+
{{ toYaml .Values.metrics.serviceMonitor.labels | indent 4}}
1717
{{- end }}
1818
spec:
1919
jobLabel: {{ template "oauth2-proxy.fullname" . }}
@@ -26,6 +26,6 @@ spec:
2626
endpoints:
2727
- port: metrics
2828
path: "/metrics"
29-
interval: {{ .Values.metrics.servicemonitor.interval }}
30-
scrapeTimeout: {{ .Values.metrics.servicemonitor.scrapeTimeout }}
29+
interval: {{ .Values.metrics.serviceMonitor.interval }}
30+
scrapeTimeout: {{ .Values.metrics.serviceMonitor.scrapeTimeout }}
3131
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ metrics:
359359
# Protocol set on the service for the metrics port
360360
service:
361361
appProtocol: http
362-
servicemonitor:
362+
serviceMonitor:
363363
# Enable Prometheus Operator ServiceMonitor
364364
enabled: false
365365
# Define the namespace where to deploy the ServiceMonitor resource

0 commit comments

Comments
 (0)