code: def get_secrets(namespace, name="", apiserver_url=None, decode=False, brief=False):
      '''
      Get k8s namespaces
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' k8s.get_secrets namespace_name
          salt '*' k8s.get_secrets namespace_name secret_name http://kube-master.cluster.local
  
      '''
      # Try to get kubernetes master
      apiserver_url = _guess_apiserver(apiserver_url)
      if apiserver_url is None:
          return False
  
      # Get data
      if not decode:
          ret = _get_secrets(namespace, name, apiserver_url)
      else:
          ret = _decode_secrets(_get_secrets(namespace, name, apiserver_url))
      return ref get_secrets(namespace, name="", apiserver_url=None, decode=False, brief=False):
      '''
      Get k8s namespaces
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' k8s.get_secrets namespace_name
          salt '*' k8s.get_secrets namespace_name secret_name http://kube-master.cluster.local
  
      '''
      # Try to get kubernetes master
      apiserver_url = _guess_apiserver(apiserver_url)
      if apiserver_url is None:
          return False
  
      # Get data
      if not decode:
          ret = _get_secrets(namespace, name, apiserver_url)
      else:
          ret = _decode_secrets(_get_secrets(namespace, name, apiserver_url))
      return ret
docs: Get k8s namespaces
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' k8s.get_secrets namespace_name
          salt '*' k8s.get_secrets namespace_name secret_name http://kube-master.cluster.local