Date
1 - 3 of 3
Helm
Matt Fisher <matt.fisher@...>
In your example, you are passing a variable of type string ("need value") to your function "mypath". Inside your "mypath" function,. it's looking for an object with a field called Values.
If you change your `include` function call to {{ include "mypath" $ }}, what happens?
Matthew Fisher Caffeinated Software Engineer
Microsoft Canada From: cncf-helm@... <cncf-helm@...> on behalf of lmadan via Lists.Cncf.Io <lmadan=alumni.usc.edu@...>
Sent: Thursday, March 19, 2020 2:57 PM To: cncf-helm@... <cncf-helm@...> Cc: cncf-helm@... <cncf-helm@...> Subject: [cncf-helm] Helm |
|
Matt Fisher <matt.fisher@...>
In other words, you are passing a function a string when it expected an object. If you change your function call to the type it expects, that should solve your error.
Matthew Fisher Caffeinated Software Engineer
Microsoft Canada From: Matt Fisher <Matt.Fisher@...>
Sent: Friday, March 20, 2020 9:09 AM To: cncf-helm@... <cncf-helm@...>; lmadan@... <lmadan@...> Subject: Re: [cncf-helm] Helm
In your example, you are passing a variable of type string ("need value") to your function "mypath". Inside your "mypath" function,. it's looking for an object with a field called Values.
If you change your `include` function call to {{ include "mypath" $ }}, what happens?
Matthew Fisher Caffeinated Software Engineer
Microsoft Canada From: cncf-helm@... <cncf-helm@...> on behalf of lmadan via Lists.Cncf.Io <lmadan=alumni.usc.edu@...>
Sent: Thursday, March 19, 2020 2:57 PM To: cncf-helm@... <cncf-helm@...> Cc: cncf-helm@... <cncf-helm@...> Subject: [cncf-helm] Helm |
|
lmadan@...
Thanks Matthew, for your response.
I don't believe the problem is with type. I tried with $, but getting the null pointer exception. <.Values.common >: nil pointer evaluating interface {}.mypath. I believe there's some scoping issues or some hidden bug, because if i remove the sub charts then parent chart is able to resolve the value, but if i have the sub charts then it barfs about the issue. Regards, Lokesh |
|