This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 737118a63977619a673141754235148f4ca57a0e
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Thu Feb 11 18:04:48 2021 +0100

    chore(rbac): Rename operator ClusterRole resource
---
 config/rbac/kustomization.yaml                             |  2 +-
 ...g.yaml => operator-cluster-role-binding-openshift.yaml} |  5 ++---
 config/rbac/operator-cluster-role-openshift.yaml           |  2 +-
 pkg/resources/resources.go                                 | 14 +++++++-------
 4 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml
index a11fe29..b776c2b 100644
--- a/config/rbac/kustomization.yaml
+++ b/config/rbac/kustomization.yaml
@@ -32,5 +32,5 @@ resources:
 - operator-role-binding-servicemonitors.yaml
 - operator-role-binding-strimzi.yaml
 - operator-role-binding.yaml
-- operator-cluster-role-binding.yaml
 - operator-cluster-role-openshift.yaml
+- operator-cluster-role-binding-openshift.yaml
diff --git a/config/rbac/operator-cluster-role-binding.yaml 
b/config/rbac/operator-cluster-role-binding-openshift.yaml
similarity index 93%
rename from config/rbac/operator-cluster-role-binding.yaml
rename to config/rbac/operator-cluster-role-binding-openshift.yaml
index 4e1ec70..5f181fe 100644
--- a/config/rbac/operator-cluster-role-binding.yaml
+++ b/config/rbac/operator-cluster-role-binding-openshift.yaml
@@ -18,14 +18,13 @@
 kind: ClusterRoleBinding
 apiVersion: rbac.authorization.k8s.io/v1
 metadata:
-  name: placeholder-camel-k-operator
+  name: camel-k-operator-openshift
   labels:
     app: "camel-k"
 subjects:
 - kind: ServiceAccount
   name: camel-k-operator
-  namespace: placeholder
 roleRef:
   kind: ClusterRole
-  name: camel-k-operator
+  name: camel-k-operator-openshift
   apiGroup: rbac.authorization.k8s.io
diff --git a/config/rbac/operator-cluster-role-openshift.yaml 
b/config/rbac/operator-cluster-role-openshift.yaml
index 9520a6a..7f020ab 100644
--- a/config/rbac/operator-cluster-role-openshift.yaml
+++ b/config/rbac/operator-cluster-role-openshift.yaml
@@ -18,7 +18,7 @@
 kind: ClusterRole
 apiVersion: rbac.authorization.k8s.io/v1
 metadata:
-  name: camel-k-operator
+  name: camel-k-operator-openshift
   labels:
     app: "camel-k"
 rules:
diff --git a/pkg/resources/resources.go b/pkg/resources/resources.go
index 8db776d..03e9b12 100644
--- a/pkg/resources/resources.go
+++ b/pkg/resources/resources.go
@@ -211,19 +211,19 @@ var assets = func() http.FileSystem {
 
                        compressedContent: 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x54\x4f\x8f\xdb\xb6\x13\xbd\xf3\x53\x3c\x48\x97\xe4\x87\xb5\xfc\x6b\x4f\x85\x7b\x72\x37\xbb\xad\xd1\xc0\x06\x56\x4e\x83\x1c\xc7\xd4\x58\x1a\x2c\x45\xb2\x24\xb5\xca\xf6\xd3\x17\xa2\xed\xae\x1d\xa7\xff\xd0\x00\xd1\xc5\xa3\xe1\xf0\xcd\x7b\xf3\xc6\x2a\x31\xfb\x72\x8f\x2a\xf1\x56\x34\xdb\xc8\x0d\x92\x43\xea\x18\x4b\x4f\xba\x63\xd4\x6e\x9f\x46\x0a\x8c\x7b\x37\xd8\x86\x92\x38\x8b\x57\xcb\xfa\xfe\x35\x06\xdb\x70\x80\xb3\x
 [...]
                },
-               "/rbac/operator-cluster-role-binding.yaml": 
&vfsgen۰CompressedFileInfo{
-                       name:             "operator-cluster-role-binding.yaml",
+               "/rbac/operator-cluster-role-binding-openshift.yaml": 
&vfsgen۰CompressedFileInfo{
+                       name:             
"operator-cluster-role-binding-openshift.yaml",
                        modTime:          time.Time{},
-                       uncompressedSize: 1256,
+                       uncompressedSize: 1239,
 
-                       compressedContent: 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\x4d\x8f\xdb\x36\x10\xbd\xf3\x57\x3c\x58\x97\x04\x58\xcb\x6d\x4f\x85\x7b\x72\x36\xbb\xad\xd0\xc0\x06\x2c\xa7\x41\x8e\x34\x35\x96\xa6\x4b\x71\xd4\x21\xb5\xca\xf6\xd7\x17\x94\xed\x64\x17\x29\x72\x5a\xde\x04\x8e\xde\xc7\xbc\xc7\x02\xcb\xd7\x3b\xa6\xc0\x07\x76\x14\x22\x35\x48\x82\xd4\x11\x36\x83\x75\x1d\xa1\x96\x53\x9a\xac\x12\xee\x65\x0c\x8d\x4d\x2c\x01\x6f\x36\xf5\xfd\x5b\x8c\xa1\x21\x85\x04\x82\x28\x7a\x51\x32\x
 [...]
+                       compressedContent: 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\x4d\x8f\xdb\x36\x10\xbd\xf3\x57\x3c\x58\x97\x04\x58\xcb\x6d\x4f\x85\x7b\x72\x36\xbb\xad\xd0\xc0\x06\x2c\xa7\x41\x8e\x34\x35\x96\xa6\x4b\x71\xd4\x21\xb5\x8a\xfb\xeb\x0b\xca\x76\xb3\x41\xd0\x22\x87\xf0\x24\x41\xa3\xf7\x31\xef\xb1\xc0\xf2\xfb\x1d\x53\xe0\x1d\x3b\x0a\x91\x1a\x24\x41\xea\x08\x9b\xc1\xba\x8e\x50\xcb\x29\x4d\x56\x09\x8f\x32\x86\xc6\x26\x96\x80\x57\x9b\xfa\xf1\x35\xc6\xd0\x90\x42\x02\x41\x14\xbd\x28\x
 [...]
                },
                "/rbac/operator-cluster-role-openshift.yaml": 
&vfsgen۰CompressedFileInfo{
                        name:             
"operator-cluster-role-openshift.yaml",
                        modTime:          time.Time{},
-                       uncompressedSize: 1316,
+                       uncompressedSize: 1326,
 
-                       compressedContent: 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\xc1\x72\xdb\x36\x10\xbd\xe3\x2b\xde\x88\x87\x24\x1d\x8b\x6a\x7b\xea\xa8\x27\xd5\xb1\x5b\x4e\x33\xd2\x8c\xa9\x34\x93\x23\x44\xae\xc8\x1d\x83\x58\x74\x01\x9a\x71\xbf\xbe\x03\x4a\x4a\xac\xf1\xd5\xb8\x70\x09\x3e\xee\xbe\x87\xf7\x50\x60\xf9\x76\xcb\x14\xf8\xc4\x0d\xf9\x48\x2d\x92\x20\xf5\x84\x4d\xb0\x4d\x4f\xa8\xe5\x98\x26\xab\x84\x7b\x19\x7d\x6b\x13\x8b\xc7\xfb\x4d\x7d\xff\x01\xa3\x6f\x49\x21\x9e\x20\x8a\x41\x94\x
 [...]
+                       compressedContent: 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x53\xc1\x72\xdb\x36\x10\xbd\xe3\x2b\xde\x88\x87\x24\x1d\x8b\x6a\x7b\xea\xa8\x27\xd5\xb1\x5b\x4e\x33\xd2\x8c\xa9\x34\x93\x23\x44\xae\xc8\x1d\x83\x58\x76\x01\x9a\x71\xbf\xbe\x03\x48\x4a\xac\xf1\xd5\xb8\x70\x09\x3e\xbe\x7d\x0f\x6f\x51\x60\xf9\x76\xcb\x14\xf8\xc4\x0d\xf9\x40\x2d\xa2\x20\xf6\x84\xcd\x68\x9b\x9e\x50\xcb\x31\xce\x56\x09\xf7\x32\xf9\xd6\x46\x16\x8f\xf7\x9b\xfa\xfe\x03\x26\xdf\x92\x42\x3c\x41\x14\x83\x28\x
 [...]
                },
                "/rbac/operator-role-binding-events.yaml": 
&vfsgen۰CompressedFileInfo{
                        name:             "operator-role-binding-events.yaml",
@@ -540,7 +540,7 @@ var assets = func() http.FileSystem {
                fs["/rbac/builder-role-binding.yaml"].(os.FileInfo),
                fs["/rbac/builder-role-kubernetes.yaml"].(os.FileInfo),
                fs["/rbac/builder-role-openshift.yaml"].(os.FileInfo),
-               fs["/rbac/operator-cluster-role-binding.yaml"].(os.FileInfo),
+               
fs["/rbac/operator-cluster-role-binding-openshift.yaml"].(os.FileInfo),
                fs["/rbac/operator-cluster-role-openshift.yaml"].(os.FileInfo),
                fs["/rbac/operator-role-binding-events.yaml"].(os.FileInfo),
                fs["/rbac/operator-role-binding-knative.yaml"].(os.FileInfo),

Reply via email to