func()

in internal/kubelib/logs.go [35:53]


func (p *FollowLogsParams) defaults() error {
	if p.Namespace == "" {
		return fmt.Errorf(".Namespace is required")
	}
	if p.Selector == nil {
		return fmt.Errorf(".Selector is required")
	}
	if p.Container == "" {
		return fmt.Errorf(".Container is required")
	}
	if p.MaxConcurrency == 0 {
		p.MaxConcurrency = 5
	}
	if p.Output == nil {
		p.Output = os.Stderr
	}

	return nil
}