def _create_namespace(namespace, apiserver_url):
 url = '{0}/api/v1/namespaces'.format(apiserver_url)
 data = {'kind': 'Namespace', 'apiVersion': 'v1', 'metadata': {'name': namespace}}
 log.trace('namespace creation requests: {0}'.format(data))
 ret = _kpost(url, data)
 log.trace('result is: {0}'.format(ret))
 return ret

def _create_namespace ( namespace , apiserver_url ) : url = '{0}/api/v1/namespaces' . format ( apiserver_url ) data = { 'kind' : 'Namespace' , 'apiVersion' : 'v1' , 'metadata' : { 'name' : namespace } } log . trace ( 'namespace creation requests: {0}' . format ( data ) ) ret = _kpost ( url , data ) log . trace ( 'result is: {0}' . format ( ret ) ) return ret
create namespace on the defined k8s cluster .