You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The patch works fine when I do not have anything under spec.forProvider.manifest.spec.values.chartValues.global.externalServices. However, when there is already an existing sub-tree, it is overwritten with the newly created json-transformed-to-object value despite of the keepMapValues: true merge option.
However, when I have two separate patch, one for the combine and another one for the transform, the keepMapValues: true has the expected effect and the newly created object is merged.
So, when I have the following patch added to another resource, just to create the proper string which I can use in the original resource for patching (really ugly, but do not know any better way currently...):
And I use the transform to patch the target resource (note: fromFieldPath: Required is there to prevent creation of the resource before the formatted string is available as I need the changes to the externalServices when this resource is created):
Problem statement
The
keepMapValues: true
merge option does not have effect when it is used in a CombineFromComposite patch along with thetransforms
operation.What happened?
I have the following patch:
The patch works fine when I do not have anything under
spec.forProvider.manifest.spec.values.chartValues.global.externalServices
. However, when there is already an existing sub-tree, it is overwritten with the newly created json-transformed-to-object value despite of thekeepMapValues: true
merge option.Resource, before patch:
After patch:
However, when I have two separate patch, one for the combine and another one for the transform, the
keepMapValues: true
has the expected effect and the newly created object is merged.So, when I have the following patch added to another resource, just to create the proper string which I can use in the original resource for patching (really ugly, but do not know any better way currently...):
And I use the transform to patch the target resource (note:
fromFieldPath: Required
is there to prevent creation of the resource before the formatted string is available as I need the changes to theexternalServices
when this resource is created):Everything works flawlessly.
Example:
Resource, before patch:
After patch:
What environment did it happen in?
Crossplane version: 1.15.0
Cloud provider: AWS EKS
Kuberetes: 1.29
The text was updated successfully, but these errors were encountered: