This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 878252b6ee3f957ce767fae682d321b539f86ee6 Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Fri Jan 28 12:19:42 2022 +0100 chore(rbac): Remove hard-coded permissions for Knative Addressable --- config/rbac/operator-role-knative.yaml | 16 ---------------- helm/camel-k/templates/operator-role.yaml | 13 ------------- pkg/resources/resources.go | 4 ++-- 3 files changed, 2 insertions(+), 31 deletions(-) diff --git a/config/rbac/operator-role-knative.yaml b/config/rbac/operator-role-knative.yaml index 296bdf2..8b37180 100644 --- a/config/rbac/operator-role-knative.yaml +++ b/config/rbac/operator-role-knative.yaml @@ -67,19 +67,3 @@ rules: - list - patch - update - # Required to resolve Addressable Sinks - # We may want to external it and make it extensible -- apiGroups: - - eventing.knative.dev - resources: - - brokers - verbs: - - get -- apiGroups: - - messaging.knative.dev - resources: - - channels - - inmemorychannels - - kafkachannels - verbs: - - get diff --git a/helm/camel-k/templates/operator-role.yaml b/helm/camel-k/templates/operator-role.yaml index d30c8eb..81f23b8 100644 --- a/helm/camel-k/templates/operator-role.yaml +++ b/helm/camel-k/templates/operator-role.yaml @@ -236,19 +236,6 @@ rules: - patch - update - apiGroups: - - eventing.knative.dev - resources: - - brokers - verbs: - - get -- apiGroups: - - messaging.knative.dev - resources: - - channels - - inmemorychannels - verbs: - - get -- apiGroups: - coordination.k8s.io resources: - leases diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go index 3fec1f6..6edf7d1 100644 --- a/pkg/resources/resources.go +++ b/pkg/resources/resources.go @@ -357,9 +357,9 @@ var assets = func() http.FileSystem { "/rbac/operator-role-knative.yaml": &vfsgen۰CompressedFileInfo{ name: "operator-role-knative.yaml", modTime: time.Time{}, - uncompressedSize: 1917, + uncompressedSize: 1620, - compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x54\x41\x6f\xe3\x46\x0f\xbd\xeb\x57\x3c\x58\x97\x5d\x20\x56\xbe\xaf\xa7\xc2\x3d\xb9\xd9\xa4\x35\xba\xb0\x81\xc8\xdb\x60\x8f\x94\x44\x4b\x84\x46\x33\x2a\x67\x64\x25\xfd\xf5\xc5\x4c\xec\xae\xd3\x14\x48\x51\xa4\xba\x98\xa2\x9f\xc8\xf7\xe6\x71\x98\x63\xf9\x7e\x4f\x96\xe3\xb3\xd4\x6c\x3d\x37\x08\x0e\xa1\x63\xac\x47\xaa\x3b\x46\xe9\x0e\x61\x26\x65\xdc\xb9\xc9\x36\x14\xc4\x59\x7c\x58\x97\x77\x1f\x31\xd9\x86\x15\xce\x32\x [...] + compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x94\x41\x6f\xdb\x46\x10\x85\xef\xfb\x2b\x1e\xc4\x4b\x02\x58\x74\xdb\x53\xa1\x9e\x54\xc7\x6e\x89\x06\x12\x60\x2a\x0d\x72\x1c\x92\x23\x72\x20\x72\x77\x3b\xbb\x14\xe3\xfe\xfa\x82\x2b\xaa\x71\xe0\x83\x2f\x0e\x2f\x1a\xad\x66\x67\xbe\x37\x6f\xc4\x0c\xeb\xb7\x7b\x4c\x86\x8f\x52\xb3\x0d\xdc\x20\x3a\xc4\x8e\xb1\xf5\x54\x77\x8c\xd2\x1d\xe3\x44\xca\x78\x70\xa3\x6d\x28\x8a\xb3\x78\xb7\x2d\x1f\xde\x63\xb4\x0d\x2b\x9c\x65\x38\x [...] }, "/rbac/operator-role-leases.yaml": &vfsgen۰CompressedFileInfo{ name: "operator-role-leases.yaml",