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

Allow incomplete CustomResources in crossplane.Request #33

@avarei

Description

@avarei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions