code: def _namespace_ready(self, namespace):
          
          try:
              secrets = self.core_api.list_namespaced_secret(namespace=namespace)
              if len(secrets.items) > 0:
                  # API tokens for service accounts are generated
                  logger.info("Namespace is ready!")
                  return True
          except ApiException as e:
              raise ConuException(
                  "Exception when calling Kubernetes API %s\n" % e)
  
          return False
docs: Check if API tokens for service accounts are generated
          :param namespace: str, namespace
          :return: bool