You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/06 17:06:11 UTC

[GitHub] [camel-k] rudeigerc opened a new pull request #2004: Add scaffold for Kamelet via kamel init

rudeigerc opened a new pull request #2004:
URL: https://github.com/apache/camel-k/pull/2004


   <!-- Description -->
   
   Closes #1983 
   
   ```shell
   $ ./kamel init example.kamelet.yaml
   $ cat example.kamelet.yaml
   # camel-k: language=kamelet
   
   apiVersion: camel.apache.org/v1alpha1
   kind: Kamelet
   metadata:
     name: example
     labels:
       camel.apache.org/kamelet.type: "source"
   spec:
     definition:
       title: "Timer"
       description: "Produces periodic events with a custom payload"
       required:
         - message
       properties:
         period:
           title: Period
           description: The time interval between two events
           type: integer
           default: 1000
         message:
           title: Message
           description: The message to generate
           type: string
     types:
       out:
         mediaType: application/json
         schema:
           id: text.camel.apache.org
           type: string
     flow:
       from:
         uri: timer:tick
         parameters:
           period: "{{period}}"
         steps:
           - set-body:
               constant: "{{message}}"
           - to: "kamelet:sink"
   ```
   
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   Add scaffold for Kamelet via kamel init
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] nicolaferraro merged pull request #2004: Add scaffold for Kamelet via kamel init

Posted by GitBox <gi...@apache.org>.
nicolaferraro merged pull request #2004:
URL: https://github.com/apache/camel-k/pull/2004


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org