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

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android build issue with version compatibility with agp and hilt : An exception occurred applying plugin request [id: 'com.google.dagger.hilt.android', version: '2.52']