mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
kubectl: Use v1.5-compatible ownership logic when listing dependents.
In particular, we should not assume ControllerRefs are necessarily set. However, we can still use ControllerRefs that do exist to avoid interfering with controllers that do use it.
This commit is contained in:
@@ -3555,7 +3555,7 @@ func logPodsOfDeployment(c clientset.Interface, deployment *extensions.Deploymen
|
||||
var podList *v1.PodList
|
||||
var err error
|
||||
if v15Compatible {
|
||||
podList, err = deploymentutil.ListPodsV15(deployment, podListFunc)
|
||||
podList, err = deploymentutil.ListPodsV15(deployment, rsList, podListFunc)
|
||||
} else {
|
||||
podList, err = deploymentutil.ListPods(deployment, rsList, podListFunc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user