Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.24.1
-
None
-
Unknown
Description
listPods operation dont support namespace option, i tried both by header and inline parameter
.setHeader(KubernetesConstants.KUBERNETES_NAMESPACE_NAME, simple("my-qa"))
.toF("kubernetes-pods://%s?oauthToken=%s&trustCerts=true&namespace=my-qa&operation=listPods", host, authToken)
.process(new ListPods())
.to("log:my?showAll=true&multiline=true");
it shows list of all pods but i only want for my-qa namespace.
i check code of
and at line number 95
protected void doList(Exchange exchange, String operation) throws Exception {
PodList podList = getEndpoint().getKubernetesClient().pods().inAnyNamespace().list();
its calling inAnyNamespace(), it should use inNamespace("") and if not mention then inAnyNamespace