You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I evaluate .Chart.Name, it goes through the Go exported field. But when I evaluate (fromJson (toJson .Chart)).Name, it becomes null, because toJson emits Name as the alias name instead, and fromJson would not unmarshal it back to the tagged struct and I have to write .name instead of .Name.
The text was updated successfully, but these errors were encountered:
I know it was weird of me to toJson a .Chart. I did so simply because I was passing an enormous dictionary as argument to another template, and I thought it was easier to format it as YAML and (include "internal-template" . | include "library-template"), and I tried to write the .Chart inside the YAML.
@SOF3 do you have a complete, but minimal example which I can look at and test the failure scenario? It's a bit unclear (to me) what is happening here.
Output of
helm version
:When I evaluate
.Chart.Name
, it goes through the Go exported field. But when I evaluate(fromJson (toJson .Chart)).Name
, it becomes null, becausetoJson
emitsName
as the aliasname
instead, andfromJson
would not unmarshal it back to the tagged struct and I have to write.name
instead of.Name
.The text was updated successfully, but these errors were encountered: