[
https://issues.apache.org/jira/browse/CAMEL-13978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16930590#comment-16930590
]
imran raza khan commented on CAMEL-13978:
-----------------------------------------
I tested with resourceName
fromF("kubernetes-config-maps://https://localhost:8443?authToken=xxx&trustCerts=true&namespace=my-qa&resourceName=my-config-map")
and its not working infact first it pulled all ConfigMaps and now continuously
pulling following message
[local:8443/...] my INFO Exchange[
, Id: ID-NB-118-1568642323667-0-677
, ExchangePattern: InOnly
, Properties: \{CamelCreatedTimestamp=Mon Sep 16 16:01:43 CEST 2019,
CamelExternalRedelivered=false,
CamelMessageHistory=[DefaultMessageHistory[routeId=route1, node=to1]],
CamelToEndpoint=log://my?multiline=true&showAll=true}
, Headers: \{breadcrumbId=ID-NB-118-1568642323667-0-677,
CamelKubernetesEventAction=MODIFIED,
CamelKubernetesEventTimestamp=1568642503747}
, BodyType: io.fabric8.kubernetes.api.model.ConfigMap
, Body: ConfigMap(apiVersion=v1, binaryData=null, data=null, kind=ConfigMap,
metadata=ObjectMeta(annotations=\{control-plane.alpha.kubernetes.io/leader={"holderIdentity":"BRLNYCT004.local_719b83fa-d44b-11e9-9b55-d2c8065c1507","leaseDurationSeconds":15,"acquireTime":"2019-09-13T03:20:10Z","renewTime":"2019-09-16T14:01:43Z","leaderTransitions":108}},
clusterName=null, creationTimestamp=2019-04-09T09:55:28Z,
deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[],
generateName=null, generation=null, initializers=null, labels=null,
name=kube-scheduler, namespace=kube-system, ownerReferences=[],
resourceVersion=33452056,
selfLink=/api/v1/namespaces/kube-system/configmaps/kube-scheduler,
uid=9a91f501-5aad-11e9-bf0f-6ab2cd7f5c23, additionalProperties={}),
additionalProperties={})
, Out: null:
]
> 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)