Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for the 'kubectl explain crd --recursive' goes into an infinite l…
…oop issue
- Loading branch information
Showing
4 changed files
with
113 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Kubernetes", | ||
"version": "v1.9.0" | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"OneKind": { | ||
"description": "OneKind has a short description", | ||
"required": [ | ||
"field1" | ||
], | ||
"properties": { | ||
"field1": { | ||
"description": "This is first reference field", | ||
"$ref": "#/definitions/ReferenceKind" | ||
}, | ||
"field2": { | ||
"description": "This is other kind field with string and reference", | ||
"$ref": "#/definitions/OtherKind" | ||
} | ||
}, | ||
"x-kubernetes-group-version-kind": [ | ||
{ | ||
"group": "", | ||
"kind": "OneKind", | ||
"version": "v2" | ||
} | ||
] | ||
}, | ||
"ReferenceKind": { | ||
"description": "This is reference Kind", | ||
"properties": { | ||
"referencefield": { | ||
"description": "This is reference to itself.", | ||
"$ref": "#/definitions/ReferenceKind" | ||
}, | ||
"referencesarray": { | ||
"description": "This is an array of references", | ||
"type": "array", | ||
"items": { | ||
"description": "This is reference object", | ||
"$ref": "#/definitions/ReferenceKind" | ||
} | ||
} | ||
} | ||
}, | ||
"OtherKind": { | ||
"description": "This is other kind with string and reference fields", | ||
"properties": { | ||
"string": { | ||
"description": "This string must be a string", | ||
"type": "string" | ||
}, | ||
"reference": { | ||
"description": "This is reference field.", | ||
"$ref": "#/definitions/ReferenceKind" | ||
} | ||
} | ||
} | ||
} | ||
} |