Skip to content

Do I really need a name for every resource? #502

Answered by malcolmholmes
shibumi asked this question in Q&A
Discussion options

You must be logged in to vote

That's just how Jsonnet works. It renders to JSON. Tanka then scans the resultant JSON for objects that have an apiVersion and a kind. So we somehow need to reference the object in the JSON - this could either be within a map (i.e. it needs a name) or in a list, in which case it doesn't.

However, using lists in Jsonnet makes life harder later on when we decide we want to adjust something after the fact. Having a JSON name means we can refer to the object easily, which makes a big difference.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shibumi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants