mirror of
https://github.com/fluxcd/flux2.git
synced 2025-10-28 23:14:48 +08:00
Add SA namespace to RBAC
Fix flux install when not all controllers have been selected Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
@ -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}}
|
||||||
|
|||||||
Reference in New Issue
Block a user