I have the following in my dep.yml {{ toYaml .Values.volumes | indent 8 }}
which takes an array from values.yml
of volumes and then loads it on the dep.yml file.
I want the following result on my dep.yml from the initial array
volumes:
- name: volume
persistentVolumeClaim:
claimName: {{ Release.Name }}-volume-claim
- name: volume-a
persistentVolumeClaim:
claimName: {{ Release.Name }}-volume-a-claim
- name: volume-b
persistentVolumeClaim:
claimName: {{ Release.Name }}-volume-b-claim
Adding the {{ Release.Name }}
dynamically to the volume claim name for each element of the array.
Is there any way to achieve this modifying the {{ toYaml .Values.volumes | indent 8 }}
directive?