Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 0834a90

Browse files
author
Sameer Naik
authored
Merge pull request #16 from triggermesh/fix-clusterroles
update triggermesh-controller cluster to observe status of pods and replicasets
2 parents 461a984 + 6711de8 commit 0834a90

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

config/200-clusterroles.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ rules:
219219
resources:
220220
- configmaps
221221
verbs:
222+
- get
222223
- list
223224
- watch
224225
- apiGroups:
@@ -250,6 +251,21 @@ rules:
250251
verbs:
251252
- list
252253

254+
# Observe status of Pods and their ancestors
255+
- apiGroups:
256+
- ''
257+
resources:
258+
- pods
259+
verbs:
260+
- list
261+
- watch
262+
- apiGroups:
263+
- apps
264+
resources:
265+
- replicasets
266+
verbs:
267+
- list
268+
- watch
253269
---
254270

255271
apiVersion: rbac.authorization.k8s.io/v1
@@ -305,6 +321,25 @@ rules:
305321

306322
---
307323

324+
# This role is used to grant receive adapters read-only access to per-component
325+
# configurations such as logging, observability and tracing.
326+
apiVersion: rbac.authorization.k8s.io/v1
327+
kind: ClusterRole
328+
metadata:
329+
name: triggermesh-config-watcher
330+
labels:
331+
app.kubernetes.io/part-of: triggermesh
332+
rules:
333+
- apiGroups:
334+
- ''
335+
resources:
336+
- configmaps
337+
verbs:
338+
- list
339+
- watch
340+
- get
341+
---
342+
308343
# This role provides readonly access to "Source" duck types.
309344
# All the rules it contains get aggregated into the "source-observer" ClusterRole provided by Knative Eventing.
310345
# see https://github.com/knative/eventing/blob/release-0.26/docs/spec/sources.md#source-rbac

0 commit comments

Comments
 (0)