Open phisco opened 5 months ago
Currently this function allows reading from the Context:
{{- $environmentConfig := index .context "apiextensions.crossplane.io/environment" }}
But one can not write to the context.
Adding a Context resource similar to what already done with CompositeConnectionDetails, could be an option.
Context
CompositeConnectionDetails
apiVersion: meta.gotemplating.fn.crossplane.io/v1alpha1 kind: Context data: apiextensions.crossplane.io/environment: .... another.key: ...
TBD how to handle it w.r.t. the input Context, we could replace it altogether, but merging could be a little bit hard with this function, probably it's the best thing to do though.
Thank you for opening the enhancement.
What problem are you facing?
Currently this function allows reading from the Context:
But one can not write to the context.
How could this Function help solve your problem?
Adding a
Context
resource similar to what already done withCompositeConnectionDetails
, could be an option.TBD how to handle it w.r.t. the input Context, we could replace it altogether, but merging could be a little bit hard with this function, probably it's the best thing to do though.