carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.66k stars 135 forks source link

When attribute is not found on a struct, hint to use the `hasattr()` function to avoid an error #216

Open pivotaljohn opened 3 years ago

pivotaljohn commented 3 years ago

https://kubernetes.slack.com/archives/CH8KCCKA5/p1602500676363100?thread_ts=1602500071.360700&cid=CH8KCCKA5

cppforlife commented 3 years ago

do note that starlark adds a hint about typo in the struct field name. let's make sure this hint works well with the other hint.