Merge pull request #67573 from m1kola/52218_watching_selectors

Allows to combine the `-f` and `-l` flags in kubectl logs
This commit is contained in:
Kubernetes Prow Robot
2019-02-25 18:47:45 -08:00
committed by GitHub
4 changed files with 367 additions and 55 deletions

View File

@@ -29,7 +29,7 @@ import (
)
// LogsForObjectFunc is a function type that can tell you how to get logs for a runtime.object
type LogsForObjectFunc func(restClientGetter genericclioptions.RESTClientGetter, object, options runtime.Object, timeout time.Duration, allContainers bool) ([]*rest.Request, error)
type LogsForObjectFunc func(restClientGetter genericclioptions.RESTClientGetter, object, options runtime.Object, timeout time.Duration, allContainers bool) ([]rest.ResponseWrapper, error)
// LogsForObjectFn gives a way to easily override the function for unit testing if needed.
var LogsForObjectFn LogsForObjectFunc = logsForObject