Closed mojtaba-esk closed 1 week ago
Recent updates to the code include modifications to the TestTshark
function in tshark_test.go
to handle file compression and reduce volume size. Additionally, the TsharkCollectorConfig
struct now supports IP filtering and file compression before pushing to S3. Environment variables were also updated to manage these new features, and the tsharkCollectorImage
was upgraded from version pr-11
to pr-17
.
File/Path | Change Summary |
---|---|
e2e/tshark/tshark_test.go | Updated filename for compressed extension, reduced VolumeSize, added CompressFiles field, removed cleanup logic |
pkg/instance/instance.go | Added IpFilter and CompressFiles fields to TsharkCollectorConfig struct |
pkg/instance/tshark.go | Updated tsharkCollectorImage version, added new environment variables COMPRESS_FILES and IP_FILTER |
sequenceDiagram
participant User
participant TestTshark
participant TsharkCollectorConfig
User ->> TestTshark: Trigger Test
TestTshark -->> TestTshark: Set filename with .tar.gz
TestTshark -->> TsharkCollectorConfig: Update VolumeSize to 4Gi, Set CompressFiles to true
TestTshark -x TsharkCollectorConfig: Removed CleanUp logic
TestTshark ->> User: Test Completed Successfully
User ->> TsharkCollectorConfig: Create Instance
TsharkCollectorConfig -->> TsharkCollectorConfig: Add IpFilter & CompressFiles fields
TsharkCollectorConfig ->> User: Instance Created
In the land where bytes do flow,
Compressed files now we stow,
With volumes sleek and filters neat,
Our code is now complete.
Upgraded images, shiny and new,
For data dreams, they do come true.
Here's to progress, hip-hip-hooray,
Watch our packets dance and play! 🐇🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Since the two options for filtering a particular IP address and enable file compression are added to
tshark-uploader
, this PR proposes a change to add them to thetshark
instance inknuu
so the users can configure it based on their needs.Summary by CodeRabbit
New Features
Improvements
TsharkCollectorConfig
from "10Gi" to "4Gi".tsharkCollectorImage
to versionpr-17
for improved performance and stability.Configuration Updates
COMPRESS_FILES
andIP_FILTER
.