-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support requesting extra resources #77
Comments
Thanks for opening this! I wanted to do the same for a while! My thinking was that this could be implemented via an additional resource similar to what we do for the CompositeConnectionDetails, e.g.: apiVersion: meta.gotemplating.fn.crossplane.io/v1alpha1
kind: ExtraResources
resource-1:
...selector...
resource-2:
...selector... The other option would be to have it in the input and not as part of the template, but that would be much less powerful as one could not request extra resources based on the resources available, either observed or desired from previous steps in the pipeline |
@phisco this ExtraResources idea looks great and helps customising compositions using go-templating-function with details from other existing resources. |
Just need some more testing on #83. |
this is more suitable for my use case where i want to take list of labels as input and use them to get resources , where as in function-extra-resource i should know the keys for all labels before hand and values can be taken from composite (or i need to get all the resources of a type and filter later in go-templating) |
This would support several use cases for us, too. We've used |
What problem are you facing?
We manage infrastructure with crossplane. Our compositions refer to some observe only resources (via the new beta style management policies). As of today, we need to create observe-only resources for each composition. Those resources could be global networks, flavors/hardware templates, or other resources that are commonly provided by the cloud provider.
How could this Function help solve your problem?
With the new feature of requesting extra resources in Crossplane 1.15, go template could fetch those extra resources and provide them as variables in the go template via the RunFunction request. This would have the following benefits:
The text was updated successfully, but these errors were encountered: