import yaml


def parse_resources_yaml(content):
  """Parses kubernetes resources from yaml format into structured format.

  Args:
    content: A str, the yaml content to be parsed..

  Returns:
    A list of structured kubernetes resources"""

  docs_yaml = []
  for doc_yaml in yaml.safe_load_all(content):
    if doc_yaml and 'kind' in doc_yaml:
      docs_yaml.append(doc_yaml)
  return docs_yaml