Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How an helm chart have an attribute with value contain {{ }}

In a helm chart, we can define value as something like {{ Values.name }}, which will be replaced by the real value defined in values.yaml. But if the original value has the similar format such as {{name}}, when trying to install that chart, it will fail due to error that "name" is not defined. Is there any way to handle this?

like image 751
Marco Avatar asked Nov 09 '17 06:11

Marco


1 Answers

You can embed it as a literal string with backticks:

{{`{{ "name" }}`}}
like image 77
Steve Buzonas Avatar answered Oct 28 '22 07:10

Steve Buzonas