diff options
author | 2019-03-15 14:42:52 -0700 | |
---|---|---|
committer | 2019-03-25 16:34:39 -0700 | |
commit | a871bc854cbd001bf92040298f3093001b8cf5fd (patch) | |
tree | 2ff1ceeea3a51bb7788d6fd124a62f78571ca41e /src/k8splugin/internal/app/vnfhelper.go | |
parent | 8cdd50b6a06aef5cb0541e74a07b10bd4b01b589 (diff) |
Fix namespace creation
Namespace is being created by k8splugin
if it doesn't exist. This is done before
other resources are created in kubernetes.
This patch removes check that failed if
namespace didn't exist
Change-Id: I8c5b2409ad1cf77d5f529f601870fcf87e8e8760
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-462
Diffstat (limited to 'src/k8splugin/internal/app/vnfhelper.go')
-rw-r--r-- | src/k8splugin/internal/app/vnfhelper.go | 5 |
1 files changed, 1 insertions, 4 deletions
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") |