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

Initial OLM manifest #648

Merged
merged 1 commit into from
May 14, 2019
Merged
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/olm-catalog/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.3.3
273 changes: 273 additions & 0 deletions deploy/olm-catalog/camel-k.v0.3.3.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
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": {
"contexts": [
"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": "IntegrationContext",
"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: [email protected]
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+PHN0b3Agc3RvcC1jb2xvcj0iI0Y3OUEyMyIgb2Zmc2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MS4yMiAyLjgwNC01LjYwMS01LjYwMi0xNC04LjQwNi0xNGgtMjIuNDA2Yy0xLjU2NiAwLTQuMDI1LTIuNzgtNS41OTQtMi43OGgtOC40MDZzLTMuNzI1LTUuNjUtNy4wMzEtNS44NzV6IiBmaWxsPSIjZmZmIi8+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: IntegrationContext
name: integrationcontexts.camel.apache.org
displayName: Integration Context
description: A Camel K integration context
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
8 changes: 8 additions & 0 deletions deploy/olm-catalog/csv-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
operator-path: deploy/operator-deployment-kubernetes.yaml
crd-cr-paths:
- deploy/crd-build.yaml
- deploy/crd-camel-catalog.yaml
- deploy/crd-integration.yaml
- deploy/crd-integration-context.yaml
- deploy/crd-integration-platform.yaml
role-path: deploy/operator-role-kubernetes.yaml