mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-13 19:27:28 +00:00
Merge pull request #2701 from fluxcd/add-sa-read
Grant service account read-only access to controllers
This commit is contained in:
commit
45876a723c
1 changed files with 20 additions and 10 deletions
|
|
@ -23,6 +23,8 @@ rules:
|
|||
resources:
|
||||
- namespaces
|
||||
- secrets
|
||||
- configmaps
|
||||
- serviceaccounts
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
|
|
@ -34,19 +36,27 @@ rules:
|
|||
verbs:
|
||||
- create
|
||||
- patch
|
||||
# required by leader election
|
||||
- apiGroups:
|
||||
- ""
|
||||
- ""
|
||||
resources:
|
||||
- configmaps
|
||||
- configmaps/status
|
||||
- configmaps
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- create
|
||||
- update
|
||||
- patch
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- create
|
||||
- update
|
||||
- patch
|
||||
- delete
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- configmaps/status
|
||||
verbs:
|
||||
- get
|
||||
- update
|
||||
- patch
|
||||
- apiGroups:
|
||||
- "coordination.k8s.io"
|
||||
resources:
|
||||
|
|
|
|||
Loading…
Reference in a new issue