nunjucks removing newline when rendering the template

 Normally when apply nunjucks templating, we ended up with newlines and yaml doesn't like this. To get around this, you can use the syntax here. 

Notice we have an extra - (dash) at the end of the line below and also at the beginning of the closing tag. 


{% if values.addManagedIdentitySupport === "auto" -%}

  workloadIdentityEnabled: true 

{%- endif %}



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm