kubegen
kubegen copied to clipboard
invalid macros shouldn't be tolerated
As we cannot intrude into what user may wish to do (e.g. in a ConfigMap or a CRD), we can only bail on unknown macros with kubegen. prefix (e.g. kubegen.Lookup.String is easy to mistake with kubegen.String.Lookup).
It seems like we somehow manage to convert maps to strings, which shouldn't happen and we should have a proper typecheck.
Conversions of maps into strings should not occur as of #37. We still need to fix the issue with undefined macros look-alikes, ones that start with kubegen. but don't mean anything.