[go-nuts] How to merge two Unstructured objects type ?

2021-05-02 Thread Mohamed Mahmoud
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, Mo

[go-nuts] Re: How to merge two Unstructured objects type ?

2021-05-02 Thread Mohamed Mahmoud
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

Re: [go-nuts] Re: How to merge two Unstructured objects type ?

2021-05-02 Thread Mohamed Mahmoud
This will copy over, it won’t append to it correct? Sent from my iPhone > On May 2, 2021, at 4:17 PM, Amnon wrote: > > 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:1

[go-nuts] Re: building C++ wrapper for mabain lib with go1.13

2020-03-17 Thread Mohamed Mahmoud
On Tuesday, March 17, 2020 at 12:04:34 PM UTC-4, Mohamed Mahmoud wrote: > > I have created swigcxx file , since swig now is natively integrated in go > tools > I ran the following to build a test program that interact with the mabain > wrapper go package to test the APIs >

Re: [go-nuts] building C++ wrapper for mabain lib with go1.13

2020-03-17 Thread Mohamed Mahmoud
I don't see anything obviously wrong. Add -v to -ldflags to see > exactly how the external linker is being invoked. Make sure that > -lmabain appears at the right point in the link line. > > Ian > I added -v its not showing libmabain , I am not sure what exactly you mean by having -lmabain

Re: [go-nuts] building C++ wrapper for mabain lib with go1.13

2020-03-17 Thread Mohamed Mahmoud
On Tuesday, March 17, 2020 at 5:01:43 PM UTC-4, Mohamed Mahmoud wrote: > > I don't see anything obviously wrong. Add -v to -ldflags to see > >> exactly how the external linker is being invoked. Make sure that >> -lmabain appears at the right point in the link line.

Re: [go-nuts] building C++ wrapper for mabain lib with go1.13

2020-03-18 Thread Mohamed Mahmoud
> It doesn't look like the -ldflags option is getting through to the linker. > Try > go build "-ldflags=all=-w -extldflags=-lmabain -v" > > Ian > I tried the new format however it still can't link mabain lib and I get the same errors Step 25/26 : RUN cd ${MABAIN_SRC}/; go build -x -i

Re: [go-nuts] building C++ wrapper for mabain lib with go1.13

2020-03-18 Thread Mohamed Mahmoud
On Wednesday, March 18, 2020 at 8:01:27 AM UTC-4, Mohamed Mahmoud wrote: > > > It doesn't look like the -ldflags option is getting through to the linker. >> Try >> go build "-ldflags=all=-w -extldflags=-lmabain -v" >> >> Ian >>

Re: [go-nuts] building C++ wrapper for mabain lib with go1.13

2020-03-18 Thread Mohamed Mahmoud
On Wednesday, March 18, 2020 at 11:59:38 AM UTC-4, Ian Lance Taylor wrote: > > On Wed, Mar 18, 2020 at 5:18 AM Mohamed Mahmoud > wrote: > > > > On Wednesday, March 18, 2020 at 8:01:27 AM UTC-4, Mohamed Mahmoud wrote: > >> > >> > >>>