summaryrefslogtreecommitdiffstats
path: root/vnfs
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-06-19 15:29:43 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-06-19 15:38:51 -0700
commite1e10b80cabc5d425aab3ef32460f8bbcb5bc957 (patch)
treebf994d633aedc0cfeb83a05d62302818593cc724 /vnfs
parent646446fdd7a37124e4d5d31cf855296cf2ec8024 (diff)
Added support for Operator SDK debugging
Added local build for Operator SDK debugging Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: Icd5a973bf04372cf7c9fe7d2a052930198b236a6
Diffstat (limited to 'vnfs')
-rw-r--r--vnfs/DAaaS/microservices/collectd-operator/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnfs/DAaaS/microservices/collectd-operator/Makefile b/vnfs/DAaaS/microservices/collectd-operator/Makefile
index e3269b46..47810e02 100644
--- a/vnfs/DAaaS/microservices/collectd-operator/Makefile
+++ b/vnfs/DAaaS/microservices/collectd-operator/Makefile
@@ -14,7 +14,8 @@ PROJECTNAME := $(shell basename "$(PWD)")
GOPATH := $(shell realpath "$(PWD)/../../../../../../")
COP := ${PWD}/build/_output/bin/collectd-operator
-IMAGE_NAME := collectd-operator:latest
+COP_LOCAL := ${COP}-local
+IMAGE_NAME := dcr.cluster.local:32644/collectd-operator:latest
export GOPATH ...
export GO111MODULE=on
@@ -27,6 +28,7 @@ build: clean vendor
operator-sdk generate k8s --verbose
operator-sdk generate openapi --verbose
#@go build -o ${COP} -gcflags all=-trimpath=${GOPATH} -asmflags all=-trimpath=${GOPATH} -mod=vendor demo/vnfs/DAaaS/microservices/collectd-operator/cmd/manager
+ @go build -o ${COP_LOCAL} -mod=vendor demo/vnfs/DAaaS/microservices/collectd-operator/cmd/manager
@operator-sdk build ${IMAGE_NAME} --verbose
# The following is done this way as each patch on CI runs build and each merge runs deploy. So for build we don't need to build binary and hence