Find current resourceVersion for waiting for deletion/conditions

Kubernetes-commit: a0fa584f3edda46b9ccf9916051ca0b9d8d1fe0a
This commit is contained in:
Jordan Liggitt
2019-01-11 10:38:18 -05:00
committed by Kubernetes Publisher
parent 73dad31f02
commit 2c40298487

View File

@@ -303,6 +303,7 @@ func (c *dynamicResourceClient) List(opts metav1.ListOptions) (*unstructured.Uns
}
list := &unstructured.UnstructuredList{}
list.SetResourceVersion(entireList.GetResourceVersion())
for i := range entireList.Items {
item := &entireList.Items[i]
metadata, err := meta.Accessor(item)