sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Sprig functions shouldn't deep-dive into objects

Open guice opened this issue 5 years ago • 1 comments

I'm using Sprig functions through Helm. They recommended opening the issue here. This is what I posted, which pretty much sums everything up:


When using the following checks in the template, you get undefined interface when you really expect for a waterfall "exists" check:

  type: {{ default "NodePort" .Values.fpm.service.type }}

If you don't define fpm.service within your values file, Helm will fail with:

 <.Values.fpm.service.type>: nil pointer evaluating interface {}.type

Expected behavior would be to stop at .Values.fpm.service check and default to "NodePort".

guice avatar Jan 14 '20 20:01 guice

@guice See #227, would not be automatic but would do essentially what you require.

andye2004 avatar Jan 15 '20 12:01 andye2004