Skip to content

Commit

Permalink
fix: added clusterrole
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoL96 committed Oct 11, 2024
1 parent 7b40ba1 commit aa9aecb
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
chart/templates/clusterrole.yaml
chart/templates/clusterrolebinding.yaml
43 changes: 43 additions & 0 deletions chart/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "composition-watcher.fullname" . }}
labels:
{{- include "composition-watcher.labels" . | nindent 4 }}
rules:
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- resourcetrees.krateo.io
resources:
- compositionreferences
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- resourcetrees.krateo.io
resources:
- compositionreferences/status
verbs:
- get
- patch
- update
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- update
14 changes: 14 additions & 0 deletions chart/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "composition-watcher.fullname" . }}
labels:
{{- include "composition-watcher.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "composition-watcher.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "composition-watcher.serviceAccountName" . }}
namespace: krateo-system
4 changes: 3 additions & 1 deletion chart/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ metadata:
labels:
{{- include "composition-watcher.labels" . | nindent 4 }}
data:
RESOURCE_TREE_HANDLER_URL: {{ .Values.env.RESOURCE_TREE_HANDLER_URL }}
RESOURCE_TREE_HANDLER_URL: {{ .Values.env.RESOURCE_TREE_HANDLER_URL }}
POLLING_INTERVAL: {{ .Values.env.POLLING_INTERVAL }}
MAX_RECONCILE_RATE: {{ .Values.env.MAX_RECONCILE_RATE }}

0 comments on commit aa9aecb

Please sign in to comment.