Skip to content

Conversation

@gotwarlost
Copy link
Collaborator

This commit changes the body attribute to a body block for resources and composite status/ connection. It renames the body attribute to a result attribute for functions. This allows for better tooling and schema inference based on the apiVersion and kind attributes of the body block.

There is one regression, however. It is now impossible to write a function that returns the entire k8s object since body is a block and no longer an attribute that can be assigned to.

In this commit, both old and new forms are accepted and the previous forms are merely deprecated.

This commit changes the body attribute to a body block for resources and composite status/ connection.
It renames the body attribute to a result attribute for functions.
This allows for better tooling and schema inference based on the apiVersion and kind attributes of the body block.

There is one regression, however. It is now impossible to write a function that returns the entire k8s object
since body is a block and no longer an attribute that can be assigned to.

In this commit, both old and new forms are accepted and the previous forms are merely deprecated.

Signed-off-by: gotwarlost <krishnan.anantheswaran@elastic.co>
@gotwarlost
Copy link
Collaborator Author

not needed unless it is for other reasons.

@gotwarlost gotwarlost closed this Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants