This is a clone of issue
OCPBUGS-9909. The following is the description of the original issue:
Description of problem:
Version-Release number of selected component (if applicable):
At least on 4.12+
Steps to Reproduce:
- Open the console and click on the + sign in the top right navigation header.
This JSON works fine:
But neither an array could be used to import multiple resources:
Fails with error: No "apiVersion" field found in YAML.
Nor a Kubernetes List "resource" could be used:
Fails with error: The server doesn't have a resource type "kind: List, apiVersion: v1".
Both JSON structures could not be imported.
Both JSON structures works fine and create multiple resources.
If the JSON array contains just one item the resource detail page should be opened, otherwise the import result page similar to when the user imports a yaml with multiple resources.
Found this JSON structure for example in issue OCPBUGS-4646