title: How to use if condition in helm chart
body: <p>I have below values in values.yaml </p>
  
  <pre><code>  pg_hba:
      - hostssl all all 0.0.0.0/0 md5
      - host    all all 0.0.0.0/0 md5
  </code></pre>
  
  <p>The reqiurement is  to check the <code>hostssl</code> line exists , if yes it should go into the if loop and do something.</p>
  
  <p>i tried to use <code>{{ if has "hostssl" .Values.pg_hba }}</code>
  but it seraches only for the exact string "hostssll" and not the entire line.</p>
  
  <p>Please help on how i can check for the entrire line in if condition.</p>