Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit a18d4f4

Browse files
authored
Merge pull request #33 from DoodleScheduling/update-kind
feat(chart): add bearer token auth secret for metrics
2 parents 34c97b9 + bd2293a commit a18d4f4

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

chart/k8sprom-patch-controller/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ keywords:
1212
name: k8sprom-patch-controller
1313
sources:
1414
- https://github.com/DoodleScheduling/k8sprom-patch-controller
15-
version: 0.4.0
15+
version: 0.5.0

chart/k8sprom-patch-controller/templates/podmonitor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
{{- if .Values.kubeRBACProxy.enabled }}
2323
port: https
2424
scheme: https
25+
bearerTokenSecret:
26+
key: token
27+
name: {{ template "k8sprom-patch-controller.serviceAccountName" . }}
2528
tlsConfig:
2629
insecureSkipVerify: true
2730
{{- else }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{- if .Values.serviceAccount.create -}}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: {{ template "k8sprom-patch-controller.serviceAccountName" . }}
6+
labels:
7+
app.kubernetes.io/name: {{ include "k8sprom-patch-controller.name" . }}
8+
app.kubernetes.io/instance: {{ .Release.Name }}
9+
app.kubernetes.io/managed-by: {{ .Release.Service }}
10+
helm.sh/chart: {{ include "k8sprom-patch-controller.chart" . }}
11+
annotations:
12+
kubernetes.io/service-account.name: {{ template "k8sprom-patch-controller.serviceAccountName" . }}
13+
type: kubernetes.io/service-account-token
14+
{{- end -}}

chart/k8sprom-patch-controller/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ prometheusRule:
125125
rules: []
126126

127127
kubeRBACProxy:
128-
enabled: false
128+
enabled: true
129129

130130
tolerations: []

0 commit comments

Comments
 (0)