-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Right now we have body as an attribute that contains the entire K8s object. This means that the apiVersion and kind of the resource are not available at the HCL level. This makes it impossible to write specific kinds of tooling like language servers that only need to concern themselves with HCL blocks and attributes.
Change this as follows:
- the
bodyattribute underresourceandtemplatebecomes a block. - the
bodyattribute undercompositeis also a block. - the
bodyattribute in a function definition is renamed toresult- this is not strictly needed but it is inconsistent to have some bodies be a block and others be an attribute. Specifically, for the function definition case we cannot makebodya block since it needs to be able to return scalar values.
Implement this such that for one release both old and new forms work. The old form is deprecated but still honored.
Make another release where the old form is completely removed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels