Skip to content

Commit 95a6629

Browse files
committed
Add suggestions from code review.
1 parent 06551ac commit 95a6629

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

helm/oauth2-proxy/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ Parameter | Description | Default
213213
`metrics.serviceMonitor.annotations` | Used to pass annotations that are used by the Prometheus installed in your cluster| `{}`
214214
`metrics.serviceMonitor.metricRelabelings` | Metric relabel configs to apply to samples before ingestion.| `[]`
215215
`metrics.serviceMonitor.relabelings` | Relabel configs to apply to samples before ingestion.| `[]`
216-
`metrics.serviceMonitor.targetLabels` | Attach labels to the ServiceMonitor resource based on Service metadata.| `[]`
217216
`extraObjects` | Extra K8s manifests to deploy | `[]`
218217

219218
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,

helm/oauth2-proxy/ci/servicemonitor-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
metrics:
22
enabled: true
3-
servicemonitor:
3+
serviceMonitor:
44
enabled: true
55
annotations:
66
key: value

helm/oauth2-proxy/templates/servicemonitor.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:
5-
{{- with .Values.metrics.servicemonitor.annotations }}
5+
{{- with .Values.metrics.serviceMonitor.annotations }}
66
annotations:
77
{{- toYaml . | nindent 4 }}
88
{{- end }}
@@ -30,27 +30,27 @@ spec:
3030
endpoints:
3131
- port: metrics
3232
path: "/metrics"
33-
{{- with .Values.metrics.servicemonitor.interval }}
33+
{{- with .Values.metrics.serviceMonitor.interval }}
3434
interval: {{ . }}
3535
{{- end }}
36-
{{- with .Values.metrics.servicemonitor.scrapeTimeout }}
36+
{{- with .Values.metrics.serviceMonitor.scrapeTimeout }}
3737
scrapeTimeout: {{ . }}
3838
{{- end }}
39-
{{- with .Values.metrics.servicemonitor.scheme }}
39+
{{- with .Values.metrics.serviceMonitor.scheme }}
4040
scheme: {{ . }}
4141
{{- end }}
42-
{{- with .Values.metrics.servicemonitor.bearerTokenFile }}
42+
{{- with .Values.metrics.serviceMonitor.bearerTokenFile }}
4343
bearerTokenFile: {{ . }}
4444
{{- end }}
45-
{{- with .Values.metrics.servicemonitor.tlsConfig }}
45+
{{- with .Values.metrics.serviceMonitor.tlsConfig }}
4646
tlsConfig:
4747
{{- toYaml .| nindent 4 }}
4848
{{- end }}
49-
{{- with .Values.metrics.servicemonitor.metricRelabelings }}
49+
{{- with .Values.metrics.serviceMonitor.metricRelabelings }}
5050
metricRelabelings:
5151
{{- toYaml . | nindent 4 }}
5252
{{- end }}
53-
{{- with .Values.metrics.servicemonitor.relabelings }}
53+
{{- with .Values.metrics.serviceMonitor.relabelings }}
5454
relabelings:
5555
{{- toYaml . | nindent 4 }}
5656
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,6 @@ metrics:
404404
# replacement: $1
405405
# action: replace
406406

407-
## Attach labels to the ServiceMonitor resource based on Service metadata.
408-
targetLabels: []
409-
410407
# Extra K8s manifests to deploy
411408
extraObjects: []
412409
# - apiVersion: secrets-store.csi.x-k8s.io/v1

0 commit comments

Comments
 (0)