Skip to content

Commit 2291f88

Browse files
committed
Fix rbac cluster role
Signed-off-by: Michael Kriese <michael.kriese@gmx.de>
1 parent 52bf10c commit 2291f88

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

charts/kube-vip/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.7.1
18+
version: 0.8.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/kube-vip/templates/pod-monitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ spec:
1818
{{- include "kube-vip.selectorLabels" . | nindent 6 }}
1919
podMetricsEndpoints:
2020
- port: monitoring
21-
{{- end }}
21+
{{- end }}

charts/kube-vip/templates/rbac.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,23 @@ metadata:
1414
name: {{ include "kube-vip.name" . }}
1515
rules:
1616
- apiGroups: [""]
17-
resources: ["services", "services/status", "nodes", "endpoints", "pods"]
18-
verbs: ["list","get","watch", "update"]
17+
resources: ["services/status"]
18+
verbs: ["update"]
19+
- apiGroups: [""]
20+
resources: ["services", "endpoints"]
21+
verbs: ["list", "get", "watch", "update"]
22+
- apiGroups: [""]
23+
resources: ["nodes"]
24+
verbs: ["list", "get", "watch", "update", "patch"]
1925
- apiGroups: ["coordination.k8s.io"]
2026
resources: ["leases"]
2127
verbs: ["list", "get", "watch", "update", "create"]
28+
- apiGroups: ["discovery.k8s.io"]
29+
resources: ["endpointslices"]
30+
verbs: ["list", "get", "watch", "update"]
31+
- apiGroups: [""]
32+
resources: ["pods"]
33+
verbs: ["list"]
2234
---
2335
apiVersion: rbac.authorization.k8s.io/v1
2436
kind: ClusterRoleBinding

charts/kube-vip/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ podMonitor:
133133
labels: {}
134134
annotations: {}
135135

136-
priorityClassName: ""
136+
priorityClassName: ""

0 commit comments

Comments
 (0)