I have a yaml file and a shell script having curl requests with below logic. I need to get the output of shell script and place it in the yaml data value.
For eg: shell script logic:
servers=`curl test.com/servers`
for a in servers; do
val=`curl $a/number`
if [$val == 0]
output=`curl $a/ip`
done
echo $output
If value of $output is programming, then I need test.yaml:
name: test
config: $get_output_value_from_shell #config: programming
It could be really helpful if someone helps me to solve this. I need to achieve this in helm.