Skip to content

Commit 6394e4f

Browse files
agent: added rbac.extraRules. fixes #2397
1 parent 8f99384 commit 6394e4f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

charts/victoria-metrics-agent/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Next release
22

3-
- TODO
3+
- add `.Values.rbac.extraRules` to allow setting extra Role/ClusterRole rules
44

55
## 0.25.5
66

charts/victoria-metrics-agent/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
type: application
33
name: victoria-metrics-agent
44
description: VictoriaMetrics Agent - collects metrics from various sources and stores them to VictoriaMetrics
5-
version: 0.25.5
5+
version: 0.25.6
66
appVersion: v1.125.1
77
sources:
88
- https://github.com/VictoriaMetrics/helm-charts

charts/victoria-metrics-agent/templates/rbac.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ rules:
5656
resources:
5757
- ingresses
5858
verbs: ["get", "list", "watch"]
59+
{{- with .Values.rbac.extraRules }}
60+
{{ toYaml . }}
61+
{{- end }}
5962
{{- if not $namespaced }}
6063
- apiGroups: [""]
6164
resources:

charts/victoria-metrics-agent/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ rbac:
9898
# -- If true and `rbac.enabled`, will deploy a Role/RoleBinding instead of a ClusterRole/ClusterRoleBinding
9999
namespaced: false
100100

101+
# -- additional rules for a role
102+
extraRules: []
103+
101104
serviceAccount:
102105
# -- Specifies whether a service account should be created
103106
create: true

0 commit comments

Comments
 (0)