def _get_secrets(namespace, name, apiserver_url):
 url = '{0}/api/v1/namespaces/{1}/secrets/{2}'.format(apiserver_url, namespace, name)
 ret = http.query(url)
 if ret.get('body'):
  return json.loads(ret.get('body'))
 else:
  return None

def _get_secrets ( namespace , name , apiserver_url ) : url = '{0}/api/v1/namespaces/{1}/secrets/{2}' . format ( apiserver_url , namespace , name ) ret = http . query ( url ) if ret . get ( 'body' ) : return json . loads ( ret . get ( 'body' ) ) else : return None
get secrets of the namespace .