Base64 Decoding secrets of kubernetes (Apache Camel 3.2.0)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Base64 Decoding secrets of kubernetes (Apache Camel 3.2.0)

imranrazakhan
This post was updated on .
I want to get secret from kubernetes and then want to decode it within
route, Following is my example

from("timer://foo?repeatCount=1&delay=1000")
.setHeader(KubernetesConstants.KUBERNETES_NAMESPACE_NAME, simple("myns"))
.setHeader(KubernetesConstants.KUBERNETES_SECRET_NAME, simple("broker"))
.to("kubernetes-secrets:///?kubernetesClient=#kubernetesClient&operation=getSecret")
.setHeader("AMQ_PASSWORD",simple("${body.getData['amq-password']}") )
--> here i want to decode this value
//.process(new GetSecret())
.to("log:my?showAll=true&multiline=true");


I am looking for option with simple, I know i can do it in processor
but i am looking for simple solution.