I am writing helm charts and it creates one deployment and one statefulset component.
Now I want to generate uuid and send the value to both k8s components.
I a using uuid function to generate the uuid. But need help how I can send this value to both components.
Here is my chart folder structure --
- projectdir
- chart1
- templates
- statefulset.yaml
- templates
- chart2
- templates
- deployment.yaml
- templates
- helperchart
- templates
- _helpers.tpl
- templates
- chart1
I have to write the logic to generate the uuid in _helpers.tpl.