From b650be1313810ff9289765c198f56318481068a1 Mon Sep 17 00:00:00 2001 From: Nicola Ferraro Date: Fri, 22 May 2020 15:37:24 +0200 Subject: [PATCH] Fix #1045: hide internal CRDs in OLM console --- .../camel-k.v0.3.4.clusterserviceversion.yaml | 0 .../0.3.4/crd-build.yaml | 0 .../0.3.4/crd-camel-catalog.yaml | 0 .../0.3.4/crd-integration-context.yaml | 0 .../0.3.4/crd-integration-platform.yaml | 0 .../0.3.4/crd-integration.yaml | 0 ...mel-k.v1.0.0-M1.clusterserviceversion.yaml | 0 .../1.0.0-m1/crd-build.yaml | 0 .../1.0.0-m1/crd-camel-catalog.yaml | 0 .../1.0.0-m1/crd-integration-kit.yaml | 0 .../1.0.0-m1/crd-integration-platform.yaml | 0 .../1.0.0-m1/crd-integration.yaml | 0 ...mel-k.v1.0.0-M2.clusterserviceversion.yaml | 0 .../1.0.0-m2/crd-build.yaml | 0 .../1.0.0-m2/crd-camel-catalog.yaml | 0 .../1.0.0-m2/crd-integration-kit.yaml | 0 .../1.0.0-m2/crd-integration-platform.yaml | 0 .../1.0.0-m2/crd-integration.yaml | 0 ...mel-k.v1.0.0-m3.clusterserviceversion.yaml | 0 .../1.0.0-m3/crd-build.yaml | 0 .../1.0.0-m3/crd-camel-catalog.yaml | 0 .../1.0.0-m3/crd-integration-kit.yaml | 0 .../1.0.0-m3/crd-integration-platform.yaml | 0 .../1.0.0-m3/crd-integration.yaml | 0 ...mel-k.v1.0.0-m4.clusterserviceversion.yaml | 0 .../1.0.0-m4/crd-build.yaml | 0 .../1.0.0-m4/crd-camel-catalog.yaml | 0 .../1.0.0-m4/crd-integration-kit.yaml | 0 .../1.0.0-m4/crd-integration-platform.yaml | 0 .../1.0.0-m4/crd-integration.yaml | 0 ...el-k.v1.0.0-rc1.clusterserviceversion.yaml | 0 .../1.0.0-rc1/crd-build.yaml | 0 .../1.0.0-rc1/crd-camel-catalog.yaml | 0 .../1.0.0-rc1/crd-integration-kit.yaml | 0 .../1.0.0-rc1/crd-integration-platform.yaml | 0 .../1.0.0-rc1/crd-integration.yaml | 0 ...el-k.v1.0.0-rc2.clusterserviceversion.yaml | 0 .../1.0.0-rc2/crd-build.yaml | 0 .../1.0.0-rc2/crd-camel-catalog.yaml | 0 .../1.0.0-rc2/crd-integration-kit.yaml | 0 .../1.0.0-rc2/crd-integration-platform.yaml | 0 .../1.0.0-rc2/crd-integration.yaml | 0 .../builds.camel.apache.org.crd.yaml | 0 ...v1.0.0-snapshot.clusterserviceversion.yaml | 1 + .../camelcatalogs.camel.apache.org.crd.yaml | 0 .../integrationkits.camel.apache.org.crd.yaml | 0 ...grationplatforms.camel.apache.org.crd.yaml | 0 .../integrations.camel.apache.org.crd.yaml | 0 .../camel-k-dev.package.yaml} | 6 +- .../camel-k.v0.3.3.clusterserviceversion.yaml | 290 ------------------ script/build_olm.sh | 4 +- script/olm_publish_test_bundle.sh | 42 +++ script/olm_test_operator_source.yaml | 31 ++ script/unsnapshot_olm.sh | 4 +- 54 files changed, 82 insertions(+), 296 deletions(-) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/camel-k.v0.3.4.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/crd-integration-context.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/0.3.4/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/camel-k.v1.0.0-M1.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m1/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/camel-k.v1.0.0-M2.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m2/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/camel-k.v1.0.0-m3.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m3/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/camel-k.v1.0.0-m4.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-m4/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/camel-k.v1.0.0-rc1.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc1/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/camel-k.v1.0.0-rc2.clusterserviceversion.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/crd-build.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/crd-camel-catalog.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/crd-integration-kit.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/crd-integration-platform.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-rc2/crd-integration.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/builds.camel.apache.org.crd.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml (98%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/camelcatalogs.camel.apache.org.crd.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/integrationkits.camel.apache.org.crd.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/integrationplatforms.camel.apache.org.crd.yaml (100%) rename deploy/olm-catalog/{camel-k => camel-k-dev}/1.0.0-snapshot/integrations.camel.apache.org.crd.yaml (100%) rename deploy/olm-catalog/{camel-k/camel-k.package.yaml => camel-k-dev/camel-k-dev.package.yaml} (90%) delete mode 100644 deploy/olm-catalog/camel-k/0.3.3/camel-k.v0.3.3.clusterserviceversion.yaml create mode 100755 script/olm_publish_test_bundle.sh create mode 100644 script/olm_test_operator_source.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/camel-k.v0.3.4.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/camel-k.v0.3.4.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/camel-k.v0.3.4.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/camel-k.v0.3.4.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/crd-integration-context.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration-context.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/crd-integration-context.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration-context.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/0.3.4/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/0.3.4/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/0.3.4/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/camel-k.v1.0.0-M1.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/camel-k.v1.0.0-M1.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/camel-k.v1.0.0-M1.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/camel-k.v1.0.0-M1.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m1/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m1/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/camel-k.v1.0.0-M2.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/camel-k.v1.0.0-M2.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/camel-k.v1.0.0-M2.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/camel-k.v1.0.0-M2.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m2/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m2/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/camel-k.v1.0.0-m3.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/camel-k.v1.0.0-m3.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/camel-k.v1.0.0-m3.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/camel-k.v1.0.0-m3.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m3/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m3/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/camel-k.v1.0.0-m4.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/camel-k.v1.0.0-m4.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/camel-k.v1.0.0-m4.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/camel-k.v1.0.0-m4.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-m4/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-m4/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/camel-k.v1.0.0-rc1.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/camel-k.v1.0.0-rc1.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/camel-k.v1.0.0-rc1.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/camel-k.v1.0.0-rc1.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc1/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc1/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/camel-k.v1.0.0-rc2.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/camel-k.v1.0.0-rc2.clusterserviceversion.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/camel-k.v1.0.0-rc2.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/camel-k.v1.0.0-rc2.clusterserviceversion.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/crd-build.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-build.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/crd-build.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-build.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/crd-camel-catalog.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-camel-catalog.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/crd-camel-catalog.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-camel-catalog.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration-kit.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration-kit.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration-kit.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration-kit.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration-platform.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration-platform.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration-platform.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration-platform.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-rc2/crd-integration.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-rc2/crd-integration.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/builds.camel.apache.org.crd.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/builds.camel.apache.org.crd.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/builds.camel.apache.org.crd.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/builds.camel.apache.org.crd.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml similarity index 98% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml index cd03029255..415b0b7573 100644 --- a/deploy/olm-catalog/camel-k/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml +++ b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/camel-k.v1.0.0-snapshot.clusterserviceversion.yaml @@ -75,6 +75,7 @@ metadata: description: Apache Camel K is a lightweight integration platform, born on Kubernetes, with serverless superpowers. repository: https://github.com/apache/camel-k + operators.operatorframework.io/internal-objects: '["builds.camel.apache.org","integrationkits.camel.apache.org","camelcatalogs.camel.apache.org"]' support: Camel name: camel-k-operator.v1.0.0-snapshot namespace: placeholder diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/camelcatalogs.camel.apache.org.crd.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/camelcatalogs.camel.apache.org.crd.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/camelcatalogs.camel.apache.org.crd.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/camelcatalogs.camel.apache.org.crd.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/integrationkits.camel.apache.org.crd.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrationkits.camel.apache.org.crd.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/integrationkits.camel.apache.org.crd.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrationkits.camel.apache.org.crd.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/integrationplatforms.camel.apache.org.crd.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrationplatforms.camel.apache.org.crd.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/integrationplatforms.camel.apache.org.crd.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrationplatforms.camel.apache.org.crd.yaml diff --git a/deploy/olm-catalog/camel-k/1.0.0-snapshot/integrations.camel.apache.org.crd.yaml b/deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrations.camel.apache.org.crd.yaml similarity index 100% rename from deploy/olm-catalog/camel-k/1.0.0-snapshot/integrations.camel.apache.org.crd.yaml rename to deploy/olm-catalog/camel-k-dev/1.0.0-snapshot/integrations.camel.apache.org.crd.yaml diff --git a/deploy/olm-catalog/camel-k/camel-k.package.yaml b/deploy/olm-catalog/camel-k-dev/camel-k-dev.package.yaml similarity index 90% rename from deploy/olm-catalog/camel-k/camel-k.package.yaml rename to deploy/olm-catalog/camel-k-dev/camel-k-dev.package.yaml index 1dfb8c1617..b08fcb2960 100644 --- a/deploy/olm-catalog/camel-k/camel-k.package.yaml +++ b/deploy/olm-catalog/camel-k-dev/camel-k-dev.package.yaml @@ -17,6 +17,8 @@ channels: - currentCSV: camel-k-operator.v1.0.0-snapshot + name: stable +- currentCSV: camel-k-operator.v1.0.0-rc2 name: alpha -defaultChannel: alpha -packageName: camel-k +defaultChannel: stable +packageName: camel-k-dev diff --git a/deploy/olm-catalog/camel-k/0.3.3/camel-k.v0.3.3.clusterserviceversion.yaml b/deploy/olm-catalog/camel-k/0.3.3/camel-k.v0.3.3.clusterserviceversion.yaml deleted file mode 100644 index 70c57954de..0000000000 --- a/deploy/olm-catalog/camel-k/0.3.3/camel-k.v0.3.3.clusterserviceversion.yaml +++ /dev/null @@ -1,290 +0,0 @@ -# --------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# --------------------------------------------------------------------------- - -apiVersion: operators.coreos.com/v1alpha1 -kind: ClusterServiceVersion -metadata: - annotations: - capabilities: Basic Install - categories: "Integration & Delivery" - repository: https://github.com/apache/camel-k - containerImage: docker.io/apache/camel-k:0.3.3 - support: Camel - createdAt: 2019-05-06T16:45:00Z - certified: "false" - description: |- - Apache Camel K (a.k.a. Kamel) is a lightweight integration framework built from Apache Camel that runs natively on Kubernetes and is specifically designed for serverless and microservice architectures. - alm-examples: |- - [{ - "apiVersion": "camel.apache.org/v1alpha1", - "kind": "IntegrationPlatform", - "metadata": { - "name": "example" - }, - "spec": { - "build": { - "buildStrategy": "pod" - }, - "resources": { - "kits": [ - "jvm" - ] - } - } - }, - { - "apiVersion": "camel.apache.org/v1alpha1", - "kind": "Integration", - "metadata": { - "name": "example" - }, - "spec": { - "source": { - "content": "// Add example Java code to create Integration", - "name": "Example.java" - } - } - }, - { - "apiVersion": "camel.apache.org/v1alpha1", - "kind": "IntegrationKit", - "metadata": { - "name": "example" - } - }, - { - "apiVersion": "camel.apache.org/v1alpha1", - "kind": "CamelCatalog", - "metadata": { - "name": "example" - } - }, - { - "apiVersion": "camel.apache.org/v1alpha1", - "kind": "Build", - "metadata": { - "name": "example" - } - }] - name: camel-k-operator.v0.3.3 - namespace: placeholder -spec: - displayName: Camel K Operator - version: 0.3.3 - description: | - Apache Camel K - ============== - - Camel K (a.k.a Kamel) is a lightweight integration framework built from Apache Camel that runs natively on Kubernetes and is specifically designed for serverless and microservice architectures. - - # Installation - - To start using Camel K, install the operator and then create the following `IntegrationPlatform`: - ``` - apiVersion: camel.apache.org/v1alpha1 - kind: IntegrationPlatform - metadata: - name: camel-k - labels: - app: "camel-k" - ``` - - # Running an Integration - - After the initial setup, you can run a Camel integration on the cluster by creating an example `Integration`: - ``` - apiVersion: camel.apache.org/v1alpha1 - kind: Integration - metadata: - name: example - spec: - sources: - - content: | - import org.apache.camel.builder.RouteBuilder; - - public class Example extends RouteBuilder { - @Override - public void configure() throws Exception { - from("timer:tick") - .setBody(constant("Hello World!")) - .to("log:info?skipBodyLineSeparator=false"); - } - } - name: Example.java - ``` - keywords: ['apache', 'kamel', 'kubernetes', 'serverless', 'microservices'] - maintainers: - - name: The Apache Software Foundation - email: users@camel.apache.org - provider: - name: The Apache Software Foundation - labels: - name: camel-k-operator - selector: - matchLabels: - name: camel-k-operator - links: - - name: Camel K source code repository - url: https://github.com/apache/camel-k - icon: - - base64data: PHN2ZyB2aWV3Qm94PSIwIDAgMTMwLjIxIDEzMC4wMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgxPSIzMzMuNDgiIHgyPSI0NzciIHkxPSI3MDIuNiIgeTI9IjU2My43MyIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSg5NC4wMzggMjc2LjA2KSBzY2FsZSguOTkyMDYpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI0Y2OTkyMyIgb2Zmc2V0PSIwIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0Y3OUEyMyIgb2Zmc2V0PSIuMTEiLz48c3RvcCBzdG9wLWNvbG9yPSIjRTk3ODI2IiBvZmZzZXQ9Ii45NDUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjMzMy40OCIgeDI9IjQ3NyIgeTE9IjcwMi42IiB5Mj0iNTYzLjczIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDk0LjAzOCAyNzYuMDYpIHNjYWxlKC45OTIwNikiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjRjY5OTIzIiBvZmZzZXQ9IjAiLz48c3RvcCBzdG9wLWNvbG9yPSIjRjc5QTIzIiBvZmZzZXQ9Ii4wOCIvPjxzdG9wIHN0b3AtY29sb3I9IiNFOTc4MjYiIG9mZnNldD0iLjQxOSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iNjMzLjU1IiB4Mj0iNTY2LjQ3IiB5MT0iODE0LjYiIHkyPSI5MDkuMTIiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTg1LjQyMSA1Ni4yMzYpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agc3RvcC1jb2xvcj0iI2Y2ZTQyMyIgb2Zmc2V0PSIwIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0Y3OUEyMyIgb2Zmc2V0PSIuNDEyIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0U5NzgyNiIgb2Zmc2V0PSIuNzMzIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQzNy44OSAtODM1LjI5KSI+PGNpcmNsZSBjeD0iNTAzLjEiIGN5PSI5MDAuMjkiIHI9IjYyLjUyIiBmaWxsPSJ1cmwoI2EpIiBzdHJva2U9InVybCgjYikiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iNC45NiIvPjxwYXRoIGQ9Ik00ODcuODkgODczLjY0YTg5LjUzIDg5LjUzIDAgMCAwLTIuNjg4LjAzMWMtMS4wNDMuMDMxLTIuNDQ1LjM2Mi00LjA2Mi45MDYgMjcuMzA5IDIwLjczNyAzNy4xMjcgNTguMTQ2IDIwLjI1IDkwLjY1Ni41NzMuMDE1IDEuMTQyLjA2MyAxLjcxOS4wNjMgMzAuODQ0IDAgNTYuNjItMjEuNDkzIDYzLjI4LTUwLjMxMi0xOS41NzItMjIuOTQzLTQ2LjExNy00MS4yOTQtNzguNS00MS4zNDR6IiBmaWxsPSJ1cmwoI2MpIiBvcGFjaXR5PSIuNzUiLz48cGF0aCBkPSJNNDgxLjE0IDg3NC41OGMtOS4wNjggMy4wNTItMjYuMzY4IDEzLjgwMi00MyAyOC4xNTYgMS4yNjMgMzQuMTk1IDI4Ljk2MSA2MS42MDcgNjMuMjUgNjIuNSAxNi44NzctMzIuNTEgNy4wNi02OS45MTktMjAuMjUtOTAuNjU2eiIgZmlsbD0iIzI4MTcwYiIgb3BhY2l0eT0iLjc1Ii8+PHBhdGggZD0iTTUwNC44ODkgODYyLjU0NmMtLjQ3Mi0uMDMyLS45MzIuMDI4LTEuMzc1LjI1LTUuNiAyLjgwMSAwIDE0IDAgMTQtMTYuODA3IDE0LjAwOS0xMy4yMzYgMzcuOTM4LTMyLjg0NCAzNy45MzgtMTAuNjg5IDAtMjEuMzIyLTEyLjI5My0zMi41MzEtMTkuODEyLS4xNDQgMS43NzMtLjI1IDMuNTY0LS4yNSA1LjM3NSAwIDI0LjUxNSAxMy41MSA0NS44NjMgMzMuNDY5IDU3LjA2MyA1LjU4My0uNzAzIDExLjE1OC0yLjExNCAxNS4zNDQtNC45MDYgMjEuOTkyLTE0LjY2MiAyNy40NTItNDIuNTU3IDM2LjQzOC01Ni4wMzEgNS41OTYtOC40MDcgMzEuODI0LTcuNjc3IDMzLjU5NC0xMS4yMiAyLjgwNC01LjYwMS01LjYwMi0xNC04LjQwNi0xNGgtMjIuNDA2Yy0xLjU2NiAwLTQuMDI1LTIuNzgtNS41OTQtMi43OGgtOC40MDZzLTMuNzI1LTUuNjUtNy4wMzEtNS44NzV6IiBmaWxsPSIjZmZmIi8+PC9nPjwvc3ZnPg== - mediatype: image/svg+xml - maturity: alpha - minKubeVersion: 1.11.0 - customresourcedefinitions: - owned: - - kind: Build - name: builds.camel.apache.org - version: v1alpha1 - displayName: Build - description: A Camel K build - - kind: CamelCatalog - name: camelcatalogs.camel.apache.org - version: v1alpha1 - displayName: Camel Catalog - description: A Camel catalog - - kind: Integration - name: integrations.camel.apache.org - version: v1alpha1 - displayName: Integration - description: A Camel K integration - - kind: IntegrationKit - name: integrationlkits.camel.apache.org - displayName: Integration Kit - description: A Camel K integration kit - version: v1alpha1 - - kind: IntegrationPlatform - name: integrationplatforms.camel.apache.org - version: v1alpha1 - displayName: Integration Platform - description: A Camel K integration platform - install: - spec: - deployments: - - name: camel-k-operator - spec: - replicas: 1 - selector: - matchLabels: - name: camel-k-operator - strategy: - type: Recreate - template: - metadata: - labels: - camel.apache.org/component: operator - name: camel-k-operator - spec: - containers: - - command: - - camel-k - env: - - name: WATCH_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.annotations['olm.targetNamespaces'] - - name: OPERATOR_NAME - value: camel-k - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - image: docker.io/apache/camel-k:0.3.3 - imagePullPolicy: IfNotPresent - name: camel-k-operator - serviceAccountName: camel-k-operator - permissions: - - rules: - - apiGroups: - - camel.apache.org - resources: - - '*' - verbs: - - '*' - - apiGroups: - - "" - resources: - - pods - - services - - endpoints - - persistentvolumeclaims - - configmaps - - secrets - verbs: - - create - - delete - - deletecollection - - get - - list - - patch - - update - - watch - - apiGroups: - - "" - resources: - - events - verbs: - - get - - list - - watch - - apiGroups: - - apps - resources: - - deployments - - replicasets - - statefulsets - verbs: - - create - - delete - - deletecollection - - get - - list - - patch - - update - - watch - - apiGroups: - - apps - resources: - - daemonsets - verbs: - - get - - list - - watch - - apiGroups: - - extensions - resources: - - ingresses - verbs: - - create - - delete - - deletecollection - - get - - list - - patch - - update - - watch - serviceAccountName: camel-k-operator - strategy: deployment - installModes: - - supported: true - type: OwnNamespace - - supported: true - type: SingleNamespace - - supported: false - type: MultiNamespace - - supported: false - type: AllNamespaces diff --git a/script/build_olm.sh b/script/build_olm.sh index f8d9ae9b2c..ffdae30fc2 100755 --- a/script/build_olm.sh +++ b/script/build_olm.sh @@ -29,5 +29,5 @@ cd $location/.. operator-sdk generate csv --csv-version ${version} --csv-config deploy/olm-catalog/csv-config.yaml --update-crds -rm $olm_catalog/camel-k/${version}/crd-*.yaml 2>/dev/null || true -cp $location/../deploy/crd-*.yaml $olm_catalog/camel-k/${version}/ +rm $olm_catalog/camel-k-dev/${version}/crd-*.yaml 2>/dev/null || true +cp $location/../deploy/crd-*.yaml $olm_catalog/camel-k-dev/${version}/ diff --git a/script/olm_publish_test_bundle.sh b/script/olm_publish_test_bundle.sh new file mode 100755 index 0000000000..84473e8425 --- /dev/null +++ b/script/olm_publish_test_bundle.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +location=$(dirname $0) + +cd $location/.. + +PACKAGE=camel-k-dev +VERSION=$(make get-version) + +if [ -z "${QUAY_USERNAME}" ]; then + echo "Missing QUAY_USERNAME environment variable" + exit 1 +fi + +if [ -z "${QUAY_PASSWORD}" ]; then + echo "Missing QUAY_PASSWORD environment variable" + exit 1 +fi + +QUAY_ORGANIZATION=${QUAY_ORGANIZATION:-${QUAY_USERNAME}} +echo "Quay organization: $QUAY_ORGANIZATION" + +echo "Publishing version: $VERSION" + +export AUTH_TOKEN=$(curl -sH "Content-Type: application/json" -XPOST https://quay.io/cnr/api/v1/users/login -d '{"user": {"username": "'"${QUAY_USERNAME}"'", "password": "'"${QUAY_PASSWORD}"'"}}' | jq -r '.token') + +operator-courier --verbose push deploy/olm-catalog/${PACKAGE}/ ${QUAY_ORGANIZATION} ${PACKAGE} ${VERSION} "$AUTH_TOKEN" diff --git a/script/olm_test_operator_source.yaml b/script/olm_test_operator_source.yaml new file mode 100644 index 0000000000..6bb8b997d2 --- /dev/null +++ b/script/olm_test_operator_source.yaml @@ -0,0 +1,31 @@ +# --------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# --------------------------------------------------------------------------- + +# This resource can be used to install an operator source on a OLM powered cluster +# that will display Camel K dev packages (e.g. nightly releases) + +apiVersion: operators.coreos.com/v1 +kind: OperatorSource +metadata: + name: camel-k-tests + namespace: openshift-marketplace +spec: + type: appregistry + endpoint: https://quay.io/cnr + registryNamespace: camelk + displayName: "Apache Nightly Operators" + publisher: "Apache" diff --git a/script/unsnapshot_olm.sh b/script/unsnapshot_olm.sh index cde56e3f4b..7c24af35f9 100755 --- a/script/unsnapshot_olm.sh +++ b/script/unsnapshot_olm.sh @@ -39,11 +39,11 @@ do mv ${f} ${f//-snapshot/} done -for f in $(find ${olm_catalog}/camel-k -type f); +for f in $(find ${olm_catalog}/camel-k-dev -type f); do sed -i 's/-SNAPSHOT//g' $f done -for f in $(find ${olm_catalog}/camel-k -type f); +for f in $(find ${olm_catalog}/camel-k-dev -type f); do sed -i 's/-snapshot//g' $f done