1
0
mirror of synced 2026-03-14 15:36:56 +00:00

Merge pull request #783 from fluxcd/rbac-fix

RBAC Fix: Add SA namespace to cluster role bindings
This commit is contained in:
Stefan Prodan
2021-01-26 16:24:16 +02:00
committed by GitHub
3 changed files with 9 additions and 0 deletions

View File

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

View File

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

View File

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