// TailLogs tail logs for all pods represented by this DaemonSet.
TailLogs tail logs for all pods represented by this DaemonSet.
// TailLogs tail logs for all pods represented by this DaemonSet .
func (d *DaemonSet) TailLogs(ctx context.Context, c LogChan, opts LogOptions) error {
	ds, err := d.GetInstance(opts.Path)
	if err != nil {
		return err
	}
	if ds.Spec.Selector == nil || len(ds.Spec.Selector.MatchLabels) == 0 {
		return fmt.Errorf("no valid selector found on daemonset %q", opts.Path)
	}
	return podLogs(ctx, c, ds.Spec.Selector.MatchLabels, opts)
}
func ( d * DaemonSet ) TailLogs ( ctx context . Context , c LogChan , opts LogOptions ) error { ds , err := d . GetInstance ( opts . Path ) if err != nil { return err } if ds . Spec . Selector == nil || len ( ds . Spec . Selector . MatchLabels ) == 0 { return fmt . Errorf ( " " , opts . Path ) } return podLogs ( ctx , c , ds . Spec . Selector . MatchLabels , opts ) }
TailLogs tail logs for all pods represented by this DaemonSet.
TailLogs tail logs for all pods represented by this DaemonSet .