Commit Graph

11 Commits

Author SHA1 Message Date
Prashant Rewar fef5da99bd
Replace all usages of deprecated wait.PollImmediate with wait.PollUntilContextTimeout (#3004)
Signed-off-by: Prashant Rewar <108176843+prashantrewar@users.noreply.github.com>
2024-04-02 14:44:03 +00:00
Martin Gencur 0274825984
Allow logstream to stream logs from user namespace (#2591)
* Allow logstream to stream logs from user namespace

* When streaming logs from user namespace, disable filtering lines so
all lines are printed.

* Fixes

* Document the Callback type

* Create function New for configuring logstream with additional options

* Re-use function New inside FromNamespaces
2023-01-04 19:34:20 +00:00
Dave Protasowski 3d24b8416b
fix lint warnings (#2589)
* resolve deprecation warnings

* drop use of ioutil

* fix license

* run hack/update-codegen.sh
2022-09-12 18:15:45 +00:00
Igor Belianski ef8048c0ba
Enable multi namespace log collection in e2e test (#1959)
* enable multi namespace log collection in e2e test

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/interface.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* var grouping of global variables

* fix broken build

* Update test/logstream/README.md

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* Update test/logstream/v2/stream.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

* minor misc style fixes

* closing brackets spacing

* Update test/logstream/v2/stream.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2020-12-15 12:24:58 -08:00
Victor Agababov 7e918163fc
Fix some nits around logging (#1946) 2020-12-07 14:50:40 -08:00
Victor Agababov b89ac2a632
Fix the logstream since it's paniciiiiing (#1938)
The thing instroduced here: https://github.com/knative/pkg/pull/1773
2020-12-03 17:32:09 -08:00
Victor Agababov 1787376258
More test coverage for logstream (#1826)
- cover the actual log parsing (without verification for now)
- cover errors from starting stream
- other nits
2020-10-20 15:10:17 -07:00
Markus Thömmes bf971ee9f6
Harden logstream test, make it quicker and repeatable (#1824) 2020-10-20 07:56:58 -07:00
Victor Agababov eafc8c6f72
Various stuff around the logstream (#1821)
* Various stuff around the logstream

- handle `event.Object == nil` case. We have reports of this. Strange
  edgecase, but 🤷.
- add tons of tests around various cases, should raise the coverage a
bit (although, we exclude test, still should be better).

* remove chan buf

* fix spelling

* final resolution

* final resolution

* fix lint
2020-10-19 20:36:59 -07:00
Dave Protasowski ad2e1b82ee
fix the logstream v2 flake (#1805)
* fix the logstream v2 flake

* fix comment
2020-10-13 19:29:30 -07:00
Dave Protasowski 54ad6c6d39
logstream v2 (#1793)
* create a log stream that doesn't reach for pkg/test globals

* v1 can now use v2's implementation

* fix godoc

* fix self comments

* fix lints

* fix t.Error message

* guard the buffer to avoid races

* rename file to stream so that logs make more sense
2020-10-12 09:32:17 -07:00