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