This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Description
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.