crossplane-contrib / crossplane-contrib/function-patch-and-transform

Tags are not being merged as expected

Open
#50 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
46
Forks
41
Avg merge
1d 10h
Merged PRs (30d)
3

Description

Given a CompositeResourceDefinition with the following property.

```yaml
tags:
x-kubernetes-map-type: granular
additionalProperties:
type: string
description: Key-value map of resource tags.
type: object
````

And a xr with the following field.

```yaml
tags:
my-label: test
```

And P&T func configured like the following

```yaml
- step: patch-and-transform
functionRef:
name: function-patch-and-transform
input:
apiVersion: pt.fn.crossplane.io/v1beta1
kind: Resources
resources:
- name: my-resource
base:
patches:
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.tags
toFieldPath: spec.initProvider.tags
```

The tags are being overwritten where I am expecting/hoping they will be merged.

Please advise.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.