summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkud/tests/plugin.sh2
-rw-r--r--src/k8splugin/internal/app/vnfhelper.go5
2 files changed, 2 insertions, 5 deletions
diff --git a/kud/tests/plugin.sh b/kud/tests/plugin.sh
index 6cf93cef..d632f844 100755
--- a/kud/tests/plugin.sh
+++ b/kud/tests/plugin.sh
@@ -18,7 +18,7 @@ source _functions.sh
base_url="http://localhost:8081"
cloud_region_id="kud"
-namespace="default"
+namespace="testNS"
csar_id="94e414f6-9ca4-11e8-bb6a-52540067263b"
rbd_csar_id="7eb09e38-4363-9942-1234-3beb2e95fd85"
definition_id="9d117af8-30b8-11e9-af94-525400277b3d"
diff --git a/src/k8splugin/internal/app/vnfhelper.go b/src/k8splugin/internal/app/vnfhelper.go
index f7c4596d..5984bbd0 100644
--- a/src/k8splugin/internal/app/vnfhelper.go
+++ b/src/k8splugin/internal/app/vnfhelper.go
@@ -47,11 +47,8 @@ func ensuresNamespace(namespace string, kubeclient kubernetes.Interface) error {
return pkgerrors.Wrap(err, "Error fetching get namespace function")
}
- ns, err := symGetNamespaceFunc.(func(string, string, kubernetes.Interface) (string, error))(
+ ns, _ := symGetNamespaceFunc.(func(string, string, kubernetes.Interface) (string, error))(
namespace, namespace, kubeclient)
- if err != nil {
- return pkgerrors.Wrap(err, "An error ocurred during the get namespace execution")
- }
if ns == "" {
log.Println("Creating " + namespace + " namespace")