Posts

Showing posts from October, 2022

Helm Charts

Image
 Spacing in  helm charts: When ever a go template  command  is executed, then  it will leave  an empty line. If we  want  to remove emtylines, or any secias characters to the  left we need  to use {{- similary  on the right - }} Example {{- template , {{- include, {{- if, {{- end  etc When we use named templates(common blocks of code in _name.tpl files), we  don't need  any  {{- in the declare command,  by we can see in many charts they  were  written(They  doesn't  make any sense) Reference: video Include vs template: Both are helpful when we write  want to  call common block of code written in _helper.tpl file using define I always recommend using include  over template because template doesn't support piping Just know about template,  so if  you find any references of it old charts you can get the idea. The template and include takes . as argument which means s...