Refactor structure

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2024-04-10 12:55:53 +03:00
parent 2f9057e96b
commit 98577807dd
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF
17 changed files with 35 additions and 21 deletions

View file

@ -0,0 +1,24 @@
apiVersion: v1
kind: Namespace
metadata:
name: podinfo
labels:
toolkit.fluxcd.io/tenant: dev-team
---
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 current namespace
# being a RoleBinding instead of a ClusterRoleBinding
name: cluster-admin
subjects:
- kind: ServiceAccount
name: flux-restricted
namespace: "${CLUSTER_NAME}"