Topics

Does helm support xpath?


kavindu175@...
 

Hi,

Currently, I am working on creating configMaps using helm. I am facing an issue that I cannot replace a value of xml file using xpath. I have explained my task below

I have a xml file called tee.xml which should be added to my config map.

The folder structure of helm chart is shown below.

├── charts
├── Chart.yaml
├── conf
│ └── tee.xml
├── templates
│ └── ConfigMap.yaml
└── values.yaml
tee.xml is shown below.

<note>
<to>Tove</to>
<from>${name}</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

Can I replace the value ${name} (which is located in tee.xml) using xpath before it is added as a config map ? The value should be taken from values.yaml file.

Please help me, if you have any method of doing above task.

 

Thank you,

Kavindu