Add dedicated service accounts per controller

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-01-26 00:46:07 +02:00
parent c219eb2883
commit 1b581d6f51
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
21 changed files with 95 additions and 12 deletions

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: source-controller

View file

@ -3,6 +3,7 @@ kind: Kustomization
resources:
- https://github.com/fluxcd/source-controller/archive/v0.7.0.zip//source-controller-0.7.0/config/crd
- https://github.com/fluxcd/source-controller/archive/v0.7.0.zip//source-controller-0.7.0/config/manager
- account.yaml
patchesJson6902:
- target:
group: apps

View file

@ -1,3 +1,6 @@
- op: add
path: /spec/template/spec/containers/0/args/0
value: --events-addr=http://notification-controller/
- op: add
path: /spec/template/spec/serviceAccountName
value: source-controller