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

imran raza khan edited comment on CAMEL-13978 at 9/16/19 1:40 PM:
------------------------------------------------------------------

Thanks for quick fix and i tested with 2.25.0-SNAPSHOT and its working as 
expected 

fromF("kubernetes-config-maps://[https://localhost:8443?oauthToken=xxx&namespace=my-qa&trustCerts=true&operation=getConfigMap&labelKey=name&labelValue=my-config-map|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");

but one thing i would like to highlight is to get change on particular 
configmap we have to provide labelKey and labelValue , while creating ConfigMap 
these are not mandatory field so we may have configmap without labelkey and 
labelValue. so we should have option like resourceName to receive events.

Due to same reason official API ask for name of ConfigMap
/api/v1/watch/namespaces/$NAMESPACE/configmaps/$NAME


was (Author: imranrazakhan):
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)

Reply via email to