You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/03/19 13:01:00 UTC

[jira] [Commented] (CAMEL-17817) camel-jbang: Trait configuration for health

    [ https://issues.apache.org/jira/browse/CAMEL-17817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17509264#comment-17509264 ] 

Claus Ibsen commented on CAMEL-17817:
-------------------------------------

This little example now works
{code}
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: myapp
spec:
  traits:
    camel:
      configuration:
        properties:
          - camel.health.enabled=true
          - camel.health.exposureLevel=full
          - camel.health.routesEnabled=false
          - camel.health.consumersEnabled=false
          - camel.health.registryEnabled=true
          - myPeriod=5000
  flows:
    - from:
        uri: "timer:demo?period={{myPeriod}}"
        steps:
          - process: 
              ref: myProcessor 
          - log: "${body}"
          - to: "seda:foo"
          - to: "stream:out"
  sources:
    - content: |-
        beans {
            myProcessor = processor { 
                it.in.body = 123 * 2
            }
        }
      name: mybean.groovy
{code}

> camel-jbang: Trait configuration for health
> -------------------------------------------
>
>                 Key: CAMEL-17817
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17817
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Marat Gubaidullin
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.16.0
>
>
> Camel configuration in trait does not work for health, ex
> {code:java}
> apiVersion: camel.apache.org/v1
> kind: Integration
> metadata:
>   name: postman.yaml
> spec:
>   traits:
>     camel:
>       configuration:
>         properties:
>           - camel.health.enabled=true
>           - camel.health.routesEnabled=true
>           - camel.health.consumersEnabled=true
>           - camel.health.registryEnabled=true
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)