Add SA namespace to RBAC

Fix flux install when not all controllers have been selected

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/783/head
Stefan Prodan 4 years ago
parent e2097c28bd
commit 8f8c7cccc6
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -70,13 +70,19 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: kustomize-controller name: kustomize-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: helm-controller name: helm-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: source-controller name: source-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: notification-controller name: notification-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: image-reflector-controller name: image-reflector-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: image-automation-controller name: image-automation-controller
namespace: flux-system

@ -9,5 +9,7 @@ roleRef:
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: kustomize-controller name: kustomize-controller
namespace: flux-system
- kind: ServiceAccount - kind: ServiceAccount
name: helm-controller name: helm-controller
namespace: flux-system

@ -117,6 +117,7 @@ images:
var kustomizationRolesTmpl = `--- var kustomizationRolesTmpl = `---
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: {{.Namespace}}
resources: resources:
- rbac.yaml - rbac.yaml
nameSuffix: -{{.Namespace}} nameSuffix: -{{.Namespace}}

Loading…
Cancel
Save