diff --git a/kubernetes/base/dynamic/resource.py b/kubernetes/base/dynamic/resource.py index 1586b23199..58a60ec402 100644 --- a/kubernetes/base/dynamic/resource.py +++ b/kubernetes/base/dynamic/resource.py @@ -291,6 +291,8 @@ def __init__(self, client, instance): kind = instance['kind'] if kind.endswith('List') and 'items' in instance: kind = instance['kind'][:-4] + if not instance['items']: + instance['items'] = [] for item in instance['items']: if 'apiVersion' not in item: item['apiVersion'] = instance['apiVersion']