Change NCM for upstream change in orchestrator 24/107924/7
authorRajamohan Raj <rajamohan.raj@intel.com>
Tue, 19 May 2020 21:51:37 +0000 (21:51 +0000)
committerEric Multanen <eric.w.multanen@intel.com>
Thu, 21 May 2020 04:08:42 +0000 (21:08 -0700)
Issue-ID: MULTICLOUD-1064
Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com>
Change-Id: Ie4a914adbb20f6227dcba9c380a9d416f5274ad3

src/ncm/go.mod
src/ncm/pkg/module/cluster.go
src/ncm/pkg/module/netcontrolintent.go

index da62530..07fff46 100644 (file)
@@ -1,14 +1,10 @@
 module github.com/onap/multicloud-k8s/src/ncm
 
 require (
-       github.com/docker/distribution v2.7.1+incompatible // indirect
        github.com/ghodss/yaml v1.0.0
-       github.com/google/gofuzz v1.1.0 // indirect
        github.com/gorilla/handlers v1.3.0
        github.com/gorilla/mux v1.6.2
-       github.com/json-iterator/go v1.1.9 // indirect
        github.com/k8snetworkplumbingwg/network-attachment-definition-client v0.0.0-20200127152046-0ee521d56061
-       github.com/onap/multicloud-k8s/src/orchestrator v0.0.0-20200515060444-c77850a75eee
        github.com/opencontainers/go-digest v1.0.0 // indirect
        github.com/pkg/errors v0.8.1
        google.golang.org/grpc v1.27.1
@@ -16,10 +12,7 @@ require (
        k8s.io/api v0.0.0-20190831074750-7364b6bdad65
        k8s.io/apimachinery v0.0.0-20190831074630-461753078381
        k8s.io/client-go v11.0.1-0.20190409021438-1a26190bd76a+incompatible
-       k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a // indirect
        k8s.io/kubernetes v1.14.1
-       k8s.io/utils v0.0.0-20200414100711-2df71ebbae66 // indirect
-       sigs.k8s.io/yaml v1.2.0 // indirect
 )
 
 replace (
index e0464c9..2397a09 100644 (file)
@@ -512,7 +512,7 @@ func (v *ClusterClient) ApplyNetworkIntents(provider, name string) error {
 
        // add the resources to the app context
        for _, resource := range resources {
-               _, err = context.AddResource(clusterhandle, resource.name, []byte(resource.value))
+               _, err = context.AddResource(clusterhandle, resource.name, resource.value)
                if err != nil {
                        cleanuperr := context.DeleteCompositeApp()
                        if cleanuperr != nil {
index da8f9a8..c005a93 100644 (file)
@@ -281,7 +281,7 @@ func (v *NetControlIntentClient) ApplyNetControlIntent(name, project, compositea
                        }
 
                        // Update resource in AppContext
-                       err = context.UpdateResourceValue(rh, y)
+                       err = context.UpdateResourceValue(rh, string(y))
                        if err != nil {
                                log.Error("Network updating app context resource handle", log.Fields{
                                        "error":           err,