This repository contains the OLM manifests for the Knative Camel add-on.
Knative Camel can be installed directly from Operator Hub and it has the following prerequisites:
- Knative Eventing
- Knative Serving
- Camel K
NOTE: Knative Camel 0.10.0 is compatible with Camel K 1.0.0-M4, which cannot be installed from Operator Hub.
The Camel K client can be downloaded from the 1.0.0-M4 release page and installed following the instructions in the github repository.
Camel K 1.0.0-M4 should be installed in "All Namespaces" mode in order to use it in Camel Sources.
For example, to use Knative Camel in an example namespace, follow these steps:
-
Create the
example
namespace by navigating to Home > Projects in the Web Console. Click Create Project and a dialog box will appear. -
Enter
example
in the name field and click Create. Theexample
namespace is now created. Alternatively you can useoc
orkubectl
to create. -
Navigate to the Developer Catalog of the namespace to create a Camel K Integration Platform resource.
-
Once all prerequisites are installed, you can install the Knative Camel add-on.
-
Knative Camel can be installed in All Namespaces from the Operator Hub console.
-
After the installation is complete, in the Developer Catalog section a new
Camel Source
object will be listed. -
The example
Camel Source
resource aim to push events into a Knative Eventing channel, so follow the Knative Eventing documentation to create a channel namedcamel-test
. -
Once the
camel-test
channel is created, you can create theexample
Camel Source. -
After the initialization is done, it will run in the cluster.
This repo contains only the manifests for installing Knative Camel on a Kubernetes cluster supporting OLM.
To test the CSV, you can push the manifest to quay.io and create a operator source to track it.
To push the manifest to quay, use the commands:
export QUAY_USERNAME=your-user
export QUAY_PASSWORD=your-password
./push-to-quay.sh
By default applications in Quay have private scope. You need to go to the quay user interface, from the Applications tab, select knative-camel, and change the visibility to public.
Edit the operatorsource.yaml
file and set your username in the registryNamespace
field (it is set to nferraro by default).
Run:
oc create -f operatorsource.yaml
The operator will be displayed in the OpenShift marketplace.
NOTE: If you want to republish the operator, you need to first delete the application from quay.