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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 3d85485  Initial OLM manifest
3d85485 is described below

commit 3d85485ccb01f21d6803697d32bcc3eac7f21365
Author: Antonin Stefanutti <[email protected]>
AuthorDate: Thu May 9 11:34:03 2019 +0200

    Initial OLM manifest
---
 deploy/olm-catalog/camel-k.package.yaml            |   4 +
 .../camel-k.v0.3.3.clusterserviceversion.yaml      | 273 +++++++++++++++++++++
 deploy/olm-catalog/csv-config.yaml                 |   8 +
 3 files changed, 285 insertions(+)

diff --git a/deploy/olm-catalog/camel-k.package.yaml 
b/deploy/olm-catalog/camel-k.package.yaml
new file mode 100644
index 0000000..cfefa50
--- /dev/null
+++ b/deploy/olm-catalog/camel-k.package.yaml
@@ -0,0 +1,4 @@
+packageName: camel-k
+channels:
+- name: alpha
+  currentCSV: camel-k-operator.v0.3.3
diff --git a/deploy/olm-catalog/camel-k.v0.3.3.clusterserviceversion.yaml 
b/deploy/olm-catalog/camel-k.v0.3.3.clusterserviceversion.yaml
new file mode 100644
index 0000000..0a5ac37
--- /dev/null
+++ b/deploy/olm-catalog/camel-k.v0.3.3.clusterserviceversion.yaml
@@ -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+PHN0b3Agc3RvcC1jb2xvcj0iI0Y3OUEyMyIgb2Zmc2V0PSIuMTEiLz48c3RvcCBzdG9wLWNvbG9yPSIjRTk3ODI2IiBvZmZzZXQ9Ii45NDUiLz48L2
 [...]
+      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
diff --git a/deploy/olm-catalog/csv-config.yaml 
b/deploy/olm-catalog/csv-config.yaml
new file mode 100644
index 0000000..3974c87
--- /dev/null
+++ b/deploy/olm-catalog/csv-config.yaml
@@ -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

Reply via email to