I'm trying to set an application property to a spring value in a helm values file. But when I deploy this helm chart to kubernetes, I can see the value is not replaced. I would like to set the application value to the name of the stream or task. This is what I'm trying to do at the moment:
In the values.yaml file for helm:
spring.cloud.dataflow:
server:
extraEnvVars:
- name: spring.cloud.dataflow.applicationProperties.stream.appName
value: ${spring.cloud.dataflow.stream.name}
- name: spring.cloud.dataflow.applicationProperties.task.appName
value: ${spring.cloud.task.name}
But when I look at the output of describe pod I get this:
Containers:
name:
Args:
--appName=${spring.cloud.dataflow.stream.name}
My question is, if this approach is even possible? I would like to have one property which works for both tasks and streams. Else I need to define different configs in Java and conditions to decide which config to load.