Aha.
OK, 
is 
https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured#Unstructured.DeepCopyInto
what you are looking for?

On Sunday, 2 May 2021 at 19:18:43 UTC+1 mmahmo...@gmail.com wrote:

>
> https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured#section-documentation
>
> I am looking for something like the following 
> func mergeObjects(obj1 *uns.Unstructured, obj2 *uns.Unstructured) 
> (*uns.Unstructred, error) {
>
> }
>
> Thanks
> On Sunday, May 2, 2021 at 1:35:06 PM UTC-4 Amnon wrote:
>
>> I am not sure what you mean by an unstructured object.
>> So probably best if you show us the code where they are defined.
>>
>> On Sunday, 2 May 2021 at 16:37:12 UTC+1 mmahmo...@gmail.com wrote:
>>
>>> Hi All:
>>>
>>>  I am using two unstructured objects to represent two different 
>>> ConfigMaps, of the same everything but different data,  I am looking for a 
>>> way/API to merge both into one ConfigMap
>>>
>>> I am looking for something like DeepAppend() or DeepMerge() 
>>> any suggestion or recommendation ?
>>>
>>> Thanks,
>>> Mohamed
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9fe1da2f-cf8a-493c-b040-1876a78c0196n%40googlegroups.com.

Reply via email to