feat: add the ability to override merged output from XR fields#49
feat: add the ability to override merged output from XR fields#49fernandezcuesta wants to merge 2 commits intocrossplane-contrib:mainfrom
Conversation
26e59fe to
a50f3cc
Compare
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
|
What if the source field is missing? should we error out or just ignore it? should it be configurable? and what if users want more powerful patching capabilities, e.g. combinations or transforms? I'd be fine supporting a subset of what |
Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
|
Hi, thanks for having a look at it. |
|
Hi @phisco I made an attempt here, but this requires exporting most of From my point of view, only XR->Env patches apply here, thus only Related: crossplane-contrib/function-patch-and-transform#153 |
Description of your changes
Add the ability to override the merged context with fields coming from the XR.
For example this is useful in scenarios where we load fields from an
EnvironmentConfig such as
regionand we want to transparently override thisto all context users with a value from the XR (e.g. under
spec.parameters.region).Fixes #48
I have: