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

Commit 34c97b9

Browse files
authored
Merge pull request #32 from DoodleScheduling/update-kind
fix(chart): disable metrics rbac
2 parents 3c5e754 + bef851e commit 34c97b9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

chart/k8sprom-patch-controller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: v0.2.0
2+
appVersion: 0.2.0
33
description: Patch kubernetes resources using prometheus queries
44
home: https://github.com/DoodleScheduling/k8sprom-patch-controller
55
maintainers:
@@ -12,4 +12,4 @@ keywords:
1212
name: k8sprom-patch-controller
1313
sources:
1414
- https://github.com/DoodleScheduling/k8sprom-patch-controller
15-
version: 0.3.0
15+
version: 0.4.0

chart/k8sprom-patch-controller/templates/metrics-rbac.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ roleRef:
3030
subjects:
3131
- kind: ServiceAccount
3232
name: {{ template "k8sprom-patch-controller.serviceAccountName" . }}
33+
namespace: {{ .Release.Namespace }}
3334
---
3435
apiVersion: rbac.authorization.k8s.io/v1
3536
kind: ClusterRole
@@ -53,4 +54,4 @@ rules:
5354
- subjectaccessreviews
5455
verbs:
5556
- create
56-
{{- end }}
57+
{{- end }}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ spec:
2222
{{- if .Values.kubeRBACProxy.enabled }}
2323
port: https
2424
scheme: https
25-
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
2625
tlsConfig:
2726
insecureSkipVerify: true
2827
{{- else }}

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: true
128+
enabled: false
129129

130130
tolerations: []

0 commit comments

Comments
 (0)