Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow incomplete CustomResources in crossplane.Request #33

Open
Avarei opened this issue Jul 16, 2024 · 0 comments
Open

Allow incomplete CustomResources in crossplane.Request #33

Avarei opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Avarei
Copy link
Collaborator

Avarei commented Jul 16, 2024

What problem are you facing?

This function could be used in situations where it is only responsible for a subset of all resources.
Currently crossplane.Request throws an exception if a CustomResource is in RunFunctionRequest, which is not in the map of CustomResources.

local request = new crossplane {
customResourceTemplates = new {
["XR"] {
["example.crossplane.io/v1"] = XR
}
["Object"] {
["kubernetes.crossplane.io/v1alpha2"] = Object
}
}
}.Request

How could this Function help solve your problem?

If a resource is not defined crossplane.pkl should gracefully return a resource similar to unstructured.Unstructured.

@Avarei Avarei added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant