UPSTREAM: 56045: Fix getting logs from daemonset
@@ -274,6 +274,13 @@ func (f *ring1Factory) LogsForObject(object, options runtime.Object, timeout tim
return nil, fmt.Errorf("invalid label selector: %v", err)
}
+ case *extensions.DaemonSet:
+ namespace = t.Namespace
+ selector, err = metav1.LabelSelectorAsSelector(t.Spec.Selector)
+ if err != nil {
+ return nil, fmt.Errorf("invalid label selector: %v", err)
+ }
+
case *batch.Job:
namespace = t.Namespace
selector, err = metav1.LabelSelectorAsSelector(t.Spec.Selector)
