Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Adds the Prometheus scrape annotations if enabled on chart
Browse files Browse the repository at this point in the history
Signed-off-by: JoshVanL <[email protected]>
  • Loading branch information
JoshVanL committed Jun 29, 2020
1 parent 38d2ace commit cf0add4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/charts/kube-oidc-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
labels:
app.kubernetes.io/name: {{ include "kube-oidc-proxy.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
{{- if and .Values.metrics.enabled }}
prometheus.io/scrape: 'true'
prometheus.io/port: '{{ .Values.metrics.port }}'
{{ end }}
spec:
serviceAccountName: {{ include "kube-oidc-proxy.fullname" . }}
containers:
Expand Down

0 comments on commit cf0add4

Please sign in to comment.