[
https://issues.apache.org/jira/browse/CAMEL-26552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-26552:
--------------------------------
Fix Version/s: 4.24.0
> camel-kubernetes - custom-resources takes the namespace option before the
> header, unlike the other producers
> ------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-26552
> URL: https://issues.apache.org/jira/browse/CAMEL-26552
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Assignee: Jiří Ondrušek
> Priority: Minor
> Fix For: 4.24.0
>
>
> Found while fixing CAMEL-26240 (PR #29102).
> With CAMEL-26240 the kubernetes-* producers resolve the namespace as: the
> {{CamelKubernetesNamespaceName}} header first, then the endpoint
> {{namespace}} option ({{KubernetesHelper.extractNamespace}}).
> {{KubernetesCustomResourcesProducer}} keeps its old order: the endpoint
> option first, then the header. A route that sets the header to work on
> another namespace works with every producer except custom-resources.
> Proposed: use {{KubernetesHelper.extractNamespace}} in custom-resources too,
> with an upgrade guide entry (a route that sets both the option and the header
> then gets the header's namespace).
> _Claude Code on behalf of Claus Ibsen (davsclaus)_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)