Skip to content

Commit

Permalink
feat(tenant): allow hello world team only deployment, service and ing…
Browse files Browse the repository at this point in the history
…ress

Signed-off-by: iverly <[email protected]>
  • Loading branch information
iverly committed Apr 22, 2024
1 parent eb99d2b commit 1460728
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions tenants/hello-world-team/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ metadata:
namespace: hello-world-app
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
labels:
toolkit.fluxcd.io/tenant: hello-world-team
name: hello-world-team-role
namespace: hello-world-app
rules:
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps", "extensions"]
resources: ["deployments"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
labels:
Expand All @@ -16,12 +34,9 @@ metadata:
namespace: hello-world-app
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
kind: Role
name: hello-world-team-role
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: gotk:hello-world-team:reconciler
- kind: ServiceAccount
name: hello-world-team
namespace: hello-world-app

0 comments on commit 1460728

Please sign in to comment.