mirror of https://github.com/fluxcd/flux2.git
				
				
				
			Merge pull request #777 from fluxcd/dedicated-service-accounts
Add a dedicated service account per controllerpull/771/head
						commit
						cbb97768d1
					
				@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: helm-controller
 | 
				
			||||||
@ -1,3 +1,6 @@
 | 
				
			|||||||
- op: add
 | 
					- op: add
 | 
				
			||||||
  path: /spec/template/spec/containers/0/args/0
 | 
					  path: /spec/template/spec/containers/0/args/0
 | 
				
			||||||
  value: --events-addr=http://notification-controller/
 | 
					  value: --events-addr=http://notification-controller/
 | 
				
			||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: helm-controller
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: image-automation-controller
 | 
				
			||||||
@ -1,3 +1,6 @@
 | 
				
			|||||||
- op: add
 | 
					- op: add
 | 
				
			||||||
  path: /spec/template/spec/containers/0/args/0
 | 
					  path: /spec/template/spec/containers/0/args/0
 | 
				
			||||||
  value: --events-addr=http://notification-controller/
 | 
					  value: --events-addr=http://notification-controller/
 | 
				
			||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: image-automation-controller
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: image-reflector-controller
 | 
				
			||||||
@ -1,3 +1,6 @@
 | 
				
			|||||||
- op: add
 | 
					- op: add
 | 
				
			||||||
  path: /spec/template/spec/containers/0/args/0
 | 
					  path: /spec/template/spec/containers/0/args/0
 | 
				
			||||||
  value: --events-addr=http://notification-controller/
 | 
					  value: --events-addr=http://notification-controller/
 | 
				
			||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: image-reflector-controller
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: kustomize-controller
 | 
				
			||||||
@ -1,3 +1,6 @@
 | 
				
			|||||||
- op: add
 | 
					- op: add
 | 
				
			||||||
  path: /spec/template/spec/containers/0/args/0
 | 
					  path: /spec/template/spec/containers/0/args/0
 | 
				
			||||||
  value: --events-addr=http://notification-controller/
 | 
					  value: --events-addr=http://notification-controller/
 | 
				
			||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: kustomize-controller
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: notification-controller
 | 
				
			||||||
@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: notification-controller
 | 
				
			||||||
@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					apiVersion: v1
 | 
				
			||||||
 | 
					kind: ServiceAccount
 | 
				
			||||||
 | 
					metadata:
 | 
				
			||||||
 | 
					  name: source-controller
 | 
				
			||||||
@ -1,3 +1,6 @@
 | 
				
			|||||||
- op: add
 | 
					- op: add
 | 
				
			||||||
  path: /spec/template/spec/containers/0/args/0
 | 
					  path: /spec/template/spec/containers/0/args/0
 | 
				
			||||||
  value: --events-addr=http://notification-controller/
 | 
					  value: --events-addr=http://notification-controller/
 | 
				
			||||||
 | 
					- op: add
 | 
				
			||||||
 | 
					  path: /spec/template/spec/serviceAccountName
 | 
				
			||||||
 | 
					  value: source-controller
 | 
				
			||||||
 | 
				
			|||||||
@ -1,5 +1,5 @@
 | 
				
			|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
 | 
					apiVersion: kustomize.config.k8s.io/v1beta1
 | 
				
			||||||
kind: Kustomization
 | 
					kind: Kustomization
 | 
				
			||||||
resources:
 | 
					resources:
 | 
				
			||||||
  - role.yaml
 | 
					  - controller.yaml
 | 
				
			||||||
  - cluster-role.yaml
 | 
					  - reconciler.yaml
 | 
				
			||||||
 | 
				
			|||||||
					Loading…
					
					
				
		Reference in New Issue