dimanche 9 juin 2019

Assign variable inside "if" condition in Helm templating

I'm using Helm templating and trying to assign an variable inside an "IF " condition as follows. The variable is "dbpassword". `

  
    
  
  
  
  
  
  
  : |-
    
      Liquid error: wrong number of arguments (1 for 2..3)
    
  
`

While trying to use the defined variable to replace the string "DATABASE_USERNAME", it throws an error saying "undefined variable dbpassword". When the variable is defined outside the "if" condition, it works properly.

Any help is appreciated.

Aucun commentaire:

Enregistrer un commentaire