You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "imran raza khan (Jira)" <ji...@apache.org> on 2019/09/16 13:16:00 UTC

[jira] [Commented] (CAMEL-13978) Create ConfigMap Watch feature in Kubernetes Component

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

imran raza khan commented on CAMEL-13978:
-----------------------------------------

Thanks for quick fix and i tested with 2.25.0-SNAPSHOT and its working as expected but one thing i would like to highlight is

fromF("kubernetes-config-maps://https://localhost:8443?oauthToken=xxx&namespace=my-qa&trustCerts=true&operation=getConfigMap&labelKey=name&labelValue=my-config-map")
 .to("log:my?showAll=true&multiline=true")
 .to("mock:result");

To get change on particular configmap we have to provide labelKey and labelValue , while creating ConfigMap these are not manadatory field so we may have configmap without labelkey and labelValue. so we should have option like resourceName to receive events.

> Create ConfigMap Watch feature in Kubernetes Component
> ------------------------------------------------------
>
>                 Key: CAMEL-13978
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13978
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-kubernetes
>    Affects Versions: 2.24.1
>            Reporter: imran raza khan
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 3.0.0, 2.25.0, 3.0.0.RC2
>
>
> As kubernetes/openshift API support configmap watch feature same should be available in kubernetes component.
> Link for detail about ConfigMap Watch API is following
> [https://docs.openshift.com/container-platform/3.11/rest_api/api/v1.ConfigMap.html]
> Discussion related to this is here
>  [https://camel.465427.n5.nabble.com/Re-http4-not-sending-exchange-data-further-in-route-for-kubernetes-API-td5842961.html]
> Code to achieve similar functionality with http4 is here
> [https://github.com/imranrazakhan/KubernetesConfigMapWatcher]
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)