mirror of
https://github.com/fluxcd/flux2-hub-spoke-example.git
synced 2025-07-27 15:53:19 +00:00
Limit access for apps releases
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
dbf4a7d57e
commit
03d4282e95
2 changed files with 29 additions and 0 deletions
|
@ -4,3 +4,29 @@ metadata:
|
||||||
name: podinfo
|
name: podinfo
|
||||||
labels:
|
labels:
|
||||||
toolkit.fluxcd.io/tenant: dev-team
|
toolkit.fluxcd.io/tenant: dev-team
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
toolkit.fluxcd.io/tenant: dev-team
|
||||||
|
name: flux
|
||||||
|
namespace: podinfo
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
toolkit.fluxcd.io/tenant: dev-team
|
||||||
|
name: flux
|
||||||
|
namespace: podinfo
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
# This binding limits the access to the namespace
|
||||||
|
# being a RoleBinding instead of a ClusterRoleBinding
|
||||||
|
name: cluster-admin
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: flux
|
||||||
|
namespace: podinfo
|
||||||
|
|
|
@ -49,3 +49,6 @@ spec:
|
||||||
value:
|
value:
|
||||||
secretRef:
|
secretRef:
|
||||||
name: cluster-kubeconfig
|
name: cluster-kubeconfig
|
||||||
|
- op: add
|
||||||
|
path: /spec/serviceAccountName
|
||||||
|
value: flux
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue