Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Add Camel-K CSV and Package for OLM integration and deployment of op… #366

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy/bundle/camel-k.package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
packageName: camel-k
channels:
- name: alpha
currentCSV: camel-k-operator.v0.2.0
266 changes: 266 additions & 0 deletions deploy/bundle/camel-k.v0.2.0.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,266 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
name: camel-k-operator.v0.2.0
namespace: placeholder
annotations:
categories: "Integration & Delivery"
certified: "false"
containerImage: docker.io/apache/camel-k:0.2.0
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": "Integration",
"metadata": {
"name": "example"
},
"spec": {
"source": {
"content": "// Add example Java code to create Integration",
"name": "Example.java"
}
}
}]
spec:
displayName: Camel-K Operator
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"
spec:
build:
camelVersion: "2.23.1"
baseImage: "fabric8/s2i-java:3.0-java8"
localRepository: "/tmp/artifacts/m2"
```
## 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;\n\npublic class Example
extends RouteBuilder {\n @Override\n public void configure() throws Exception
{\n\t from(\"timer:tick\")\n .setBody(constant(\"-\\n r\\n o\\n
\ c\\nHello World!\\n s\\n !\\n\"))\n\t\t.to(\"log:info?skipBodyLineSeparator=false\");\n
\ }\n}\n"
name: Example.java
```
keywords: ['apache', 'kamel', 'kubernetes', 'serverless', 'microservices']
version: 0.2.0
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 Operator Source Code
url: https://github.com/apache/camel-k
installModes:
- type: OwnNamespace
supported: true
- type: SingleNamespace
supported: true
- type: MultiNamespace
supported: false
- type: AllNamespaces
supported: true
install:
strategy: deployment
spec:
permissions:
- serviceAccountName: camel-k-operator
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
attributeRestrictions: null
resources:
- daemonsets
verbs:
- get
- list
- watch
- apiGroups:
- ""
- "build.openshift.io"
resources:
- buildconfigs
- buildconfigs/webhooks
- builds
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
- "image.openshift.io"
resources:
- imagestreamimages
- imagestreammappings
- imagestreams
- imagestreams/secrets
- imagestreamtags
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
- build.openshift.io
attributeRestrictions: null
resources:
- buildconfigs/instantiate
- buildconfigs/instantiatebinary
- builds/clone
verbs:
- create
- apiGroups:
- ""
- "route.openshift.io"
resources:
- routes
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
- route.openshift.io
resources:
- routes/custom-host
verbs:
- create
deployments:
- name: camel-k-operator
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
name: camel-k-operator
template:
metadata:
labels:
name: camel-k-operator
camel.apache.org/component: operator
spec:
serviceAccountName: camel-k-operator
containers:
- name: camel-k-operator
image: docker.io/apache/camel-k:0.2.0
ports:
- containerPort: 60000
name: metrics
command:
- camel-k
imagePullPolicy: IfNotPresent
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: OPERATOR_NAME
value: "camel-k"
customresourcedefinitions:
owned:
- name: integrations.camel.apache.org
version: v1alpha1
kind: Integration
displayName: Integration CRD
description: Integration CRD for Camel-K
- name: integrationplatforms.camel.apache.org
version: v1alpha1
kind: IntegrationPlatform
displayName: Integration Platforms CRD
description: Integration Platforms CRD for Camel-K
- name: integrationcontexts.camel.apache.org
version: v1alpha1
kind: IntegrationContext
displayName: Integration Context CRD
description: Integration Context CRD for Camel-K