Skip to content

Commit

Permalink
Merge pull request #1099 from SebastianBakala-TomTom/fixed-rbac-for-r…
Browse files Browse the repository at this point in the history
…econciler

ci: limit rbac for the reconciler
  • Loading branch information
yiannistri authored Dec 1, 2023
2 parents f33898d + 42ade37 commit f964a6e
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion charts/tf-controller/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,57 @@ rules:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tf-cluster-reconciler-role
rules:
- apiGroups:
- infra.contrib.fluxcd.io
resources:
- terraforms
verbs:
- get
- list
- patch
- update
- watch
- apiGroups:
- infra.contrib.fluxcd.io
resources:
- terraforms/finalizers
verbs:
- create
- delete
- get
- patch
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- configmaps
- secrets
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: tf-manager-role
rules:
Expand Down Expand Up @@ -167,7 +218,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
name: tf-cluster-reconciler-role
subjects:
- kind: ServiceAccount
name: {{ include "tf-controller.serviceAccountName" . }}
Expand Down

0 comments on commit f964a6e

Please sign in to comment.