You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/04/27 12:39:45 UTC

[camel-k] branch release-1.8.x updated: Operators: make prepare-operators should use the same folder structure of the Kubernetes output for the Openshift ecosystem

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

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


The following commit(s) were added to refs/heads/release-1.8.x by this push:
     new 0c9601342 Operators: make prepare-operators should use the same folder structure of the Kubernetes output for the Openshift ecosystem
0c9601342 is described below

commit 0c960134272480d4618862c3adbaaac065701182
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Apr 27 14:25:19 2022 +0200

    Operators: make prepare-operators should use the same folder structure of the Kubernetes output for the Openshift ecosystem
---
 script/prepare-operators.sh | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/script/prepare-operators.sh b/script/prepare-operators.sh
index 0ba768f93..9232324d3 100755
--- a/script/prepare-operators.sh
+++ b/script/prepare-operators.sh
@@ -30,7 +30,9 @@ cd bundle/
 mkdir -p k8s-operatorhub/$1/manifests/
 mkdir -p k8s-operatorhub/$1/metadata/
 mkdir -p k8s-operatorhub/$1/tests/scorecard/
-mkdir -p openshift-ecosystem/$1/
+mkdir -p openshift-ecosystem/$1/manifests/
+mkdir -p openshift-ecosystem/$1/metadata/
+mkdir -p openshift-ecosystem/$1/tests/scorecard/
 
 cp ./manifests/camel.apache.org_builds.yaml k8s-operatorhub/$1/manifests/builds.camel.apache.org.crd.yaml
 cp ./manifests/camel.apache.org_camelcatalogs.yaml k8s-operatorhub/$1/manifests/camelcatalogs.camel.apache.org.crd.yaml
@@ -43,16 +45,18 @@ cp ./manifests/camel-k.clusterserviceversion.yaml k8s-operatorhub/$1/manifests/c
 cp ./metadata/annotations.yaml k8s-operatorhub/$1/metadata/annotations.yaml
 cp ./tests/scorecard/config.yaml k8s-operatorhub/$1/tests/scorecard/config.yaml
 
-cp ./manifests/camel.apache.org_builds.yaml openshift-ecosystem/$1/builds.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_camelcatalogs.yaml openshift-ecosystem/$1/camelcatalogs.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_integrationkits.yaml openshift-ecosystem/$1/integrationkits.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_integrationplatforms.yaml openshift-ecosystem/$1/integrationplatforms.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_integrations.yaml openshift-ecosystem/$1/integrations.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_kameletbindings.yaml openshift-ecosystem/$1/kameletbindings.camel.apache.org.crd.yaml
-cp ./manifests/camel.apache.org_kamelets.yaml openshift-ecosystem/$1/kamelets.camel.apache.org.crd.yaml
-cp ./manifests/camel-k.clusterserviceversion.yaml openshift-ecosystem/$1/camel-k.v$1.clusterserviceversion.yaml
+cp ./manifests/camel.apache.org_builds.yaml openshift-ecosystem/$1/manifests/builds.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_camelcatalogs.yaml openshift-ecosystem/$1/manifests/camelcatalogs.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_integrationkits.yaml openshift-ecosystem/$1/manifests/integrationkits.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_integrationplatforms.yaml openshift-ecosystem/$1/manifests/integrationplatforms.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_integrations.yaml openshift-ecosystem/$1/manifests/integrations.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_kameletbindings.yaml openshift-ecosystem/$1/manifests/kameletbindings.camel.apache.org.crd.yaml
+cp ./manifests/camel.apache.org_kamelets.yaml openshift-ecosystem/$1/manifests/kamelets.camel.apache.org.crd.yaml
+cp ./manifests/camel-k.clusterserviceversion.yaml openshift-ecosystem/$1/manifests/camel-k.v$1.clusterserviceversion.yaml
+cp ./metadata/annotations.yaml openshift-ecosystem/$1/metadata/annotations.yaml
+cp ./tests/scorecard/config.yaml openshift-ecosystem/$1/tests/scorecard/config.yaml
 
 # Starting sed to replace operator
 
 sed -i 's/camel-k.v/camel-k-operator.v/g' k8s-operatorhub/$1/manifests/camel-k.v$1.clusterserviceversion.yaml
-sed -i 's/camel-k.v/camel-k-operator.v/g' openshift-ecosystem/$1/camel-k.v$1.clusterserviceversion.yaml
+sed -i 's/camel-k.v/camel-k-operator.v/g' openshift-ecosystem/$1/manifests/camel-k.v$1.clusterserviceversion.yaml