You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2021/12/06 08:29:49 UTC

[camel-k] 02/02: fix(OLM): Remove aggregated cluster roles from OLM bundle

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

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

commit 773504be11c1a417f377d835e5bc2f190bab7cc8
Author: Antonin Stefanutti <an...@stefanutti.fr>
AuthorDate: Thu Dec 2 18:21:57 2021 +0100

    fix(OLM): Remove aggregated cluster roles from OLM bundle
---
 config/manifests/kustomization.yaml                    |  3 +++
 ...zation.yaml => patch-delete-user-cluster-role.yaml} | 18 +++++-------------
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/config/manifests/kustomization.yaml b/config/manifests/kustomization.yaml
index 7842251..408829e 100644
--- a/config/manifests/kustomization.yaml
+++ b/config/manifests/kustomization.yaml
@@ -28,3 +28,6 @@ resources:
 - ../scorecard
 - ../rbac
 - ../rbac/openshift
+
+patchesStrategicMerge:
+- patch-delete-user-cluster-role.yaml
diff --git a/config/manifests/kustomization.yaml b/config/manifests/patch-delete-user-cluster-role.yaml
similarity index 80%
copy from config/manifests/kustomization.yaml
copy to config/manifests/patch-delete-user-cluster-role.yaml
index 7842251..e380103 100644
--- a/config/manifests/kustomization.yaml
+++ b/config/manifests/patch-delete-user-cluster-role.yaml
@@ -14,17 +14,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # ---------------------------------------------------------------------------
-apiVersion: kustomize.config.k8s.io/v1beta1
-kind: Kustomization
 
-# Labels to add to all resources and selectors.
-commonLabels:
-  app: camel-k
-
-resources:
-- ../manager
-- ../crd
-- ../samples
-- ../scorecard
-- ../rbac
-- ../rbac/openshift
+$patch: delete
+kind: ClusterRole
+apiVersion: rbac.authorization.k8s.io/v1
+metadata:
+  name: camel-k-edit