Skip to content

Commit 8508019

Browse files
committed
adding service account and rbac
Signed-off-by: Christian Hernandez <christian@chernand.io>
1 parent f228a2b commit 8508019

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: fluxtoolbox
5+
rules:
6+
- apiGroups:
7+
- kustomize.toolkit.fluxcd.io
8+
resources:
9+
- kustomizations
10+
verbs:
11+
- get
12+
- list
13+
- patch
14+
- apiGroups:
15+
- source.toolkit.fluxcd.io
16+
resources:
17+
- gitrepositories
18+
verbs:
19+
- get
20+
- list
21+
- patch
22+
---
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: fluxtoolbox
5+
roleRef:
6+
apiGroup: rbac.authorization.k8s.io
7+
kind: ClusterRole
8+
name: fluxtoolbox
9+
subjects:
10+
- kind: ServiceAccount
11+
name: fluxtoolbox
12+
namespace: kargo-demo
13+
---

kargo/project/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ kind: Project
33
metadata:
44
name: kargo-demo
55
spec: {}
6+
---
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: fluxtoolbox
5+
namespace: kargo-demo
6+
---

0 commit comments

Comments
 (0)