Merge pull request #1506 from dingyiyi0226/master

Fix empty yaml document error
This commit is contained in:
Kubernetes Prow Robot 2021-07-17 09:40:51 -07:00 committed by GitHub
commit 6c4d917026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,8 @@ def create_from_yaml(
failures = []
k8s_objects = []
for yml_document in yml_document_all:
if yml_document is None:
continue
try:
created = create_from_dict(k8s_client, yml_document, verbose,
namespace=namespace,