def get_secrets(namespace, name='', apiserver_url=None, decode=False, brief=False):
 apiserver_url = _guess_apiserver(apiserver_url)
 if (apiserver_url is None):
  return False
 if (not decode):
  ret = _get_secrets(namespace, name, apiserver_url)
 else:
  ret = _decode_secrets(_get_secrets(namespace, name, apiserver_url))
 return ret

def get_secrets ( namespace , name = '' , apiserver_url = None , decode = False , brief = False ) : apiserver_url = _guess_apiserver ( apiserver_url ) if ( apiserver_url is None ) : return False if ( not decode ) : ret = _get_secrets ( namespace , name , apiserver_url ) else : ret = _decode_secrets ( _get_secrets ( namespace , name , apiserver_url ) ) return ret
get k8s namespaces cli example: .