fix(template): Add missing permissions for leader role

This commit is contained in:
2024-01-09 22:25:27 +01:00
parent ba3b83a7c3
commit a598fbed4d
2 changed files with 19 additions and 3 deletions
+4 -2
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: template name: template
description: A Helm library chart containing common templates, keeping application templates short description: A Helm library chart containing common templates, keeping application templates short
type: library type: library
version: 0.3.2 version: 0.3.3
maintainers: maintainers:
- name: Jim Martens - name: Jim Martens
url: https://2martens.de url: https://2martens.de
@@ -11,7 +11,9 @@ sources:
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: fixed - kind: fixed
description: Added missing line break description: Added missing permission to leader role
- kind: fixed
description: Bind correct role
artifacthub.io/signKey: | artifacthub.io/signKey: |
fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8 fingerprint: F0F153B65BAD467201D7544E47393ABD1F96B7C8
url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc url: https://mafiasi.de/pks/key/47393ABD1F96B7C8.asc
+15 -1
View File
@@ -7,11 +7,25 @@ metadata:
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
rules: rules:
- verbs: - verbs:
- get
- watch - watch
- list
- create
- update
- patch
- delete
resources: resources:
- configmaps - configmaps
apiGroups: apiGroups:
- "" - ""
- verbs:
- get
- watch
- list
resources:
- pods
apiGroups:
- ""
{{ end }} {{ end }}
{{ end }} {{ end }}
--- ---
@@ -23,7 +37,7 @@ metadata:
name: leader-role-binding name: leader-role-binding
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
roleRef: roleRef:
name: {{ include "template.fullname" . }} name: leader-role
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
subjects: subjects: