kubeshark/shared
Andrey Pokhilko 7a823e89f1
Add option to limit example len (#1145)
Do not save OAS example response if it is over the limit.
SpecGen.MaxExampleLen is measured in bytes.
Limit=0 means "don't record any examples", while limit=-1 means "record all".

Limit is configured via the config file / --set: --set oas.max-example-len=100.
The default is 10KB.

This PR breaks the previous config. Moved oas bool (enable/disable OAS) to oas.enable.
Users who wish to disable OAS (or to explicitly enable it) should now to so with --set oas.enable=false instead of --set oas=false.

Co-authored-by: Nimrod Gilboa Markevich <nimrod@up9.com>
Co-authored-by: Nimrod Gilboa Markevich <59927337+nimrod-up9@users.noreply.github.com>
2022-06-16 14:18:42 +03:00
..
debounce Technical depth: Adding Go linter to CI (#734) 2022-02-01 08:47:26 +02:00
kubernetes Remove analyze feature (#1121) 2022-06-01 10:17:14 +03:00
semver added semver isvalid check in version update checker (#338) 2021-10-11 11:32:41 +03:00
units Update main.go, main.go, and 5 more files... 2021-07-14 17:32:55 +03:00
consts.go Remove analyze feature (#1121) 2022-06-01 10:17:14 +03:00
go.mod Add profiling tools (#1087) 2022-05-18 15:42:13 +03:00
go.sum Update Go dependencies to latest and greatest (#772) 2022-02-09 11:25:41 +02:00
Makefile CI: test share module (#763) 2022-02-07 07:16:28 +02:00
models.go Add option to limit example len (#1145) 2022-06-16 14:18:42 +03:00
sliceUtils_test.go TRA-3842 daemon mode (#427) 2021-11-04 11:46:45 +02:00
sliceUtils.go Update tap targets over ws (#901) 2022-03-23 13:50:33 +02:00