Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROX-27634: Improvements to CollectorConfig protobuf definitions #1998

Merged
merged 16 commits into from
Jan 16, 2025

Conversation

JoukoVirtanen
Copy link
Contributor

@JoukoVirtanen JoukoVirtanen commented Dec 21, 2024

Description

It was suggested in the PR to set collector runtime config via helm charts that networking.external_ips.enable should be changed to networking.external_ips.enabled. The protobuf definitions tend to use enabled rather than enable. The same is true for the helm charts. The boolean datatype should be changed to an enum. per_container_rate_limit should be changed to max_connections_per_minute.

Even if these are never set using helm or operator, it is still good to make these changes.

These protobufs are internal and the feature that uses them is in technical preview. The collector expects the field to be enable rather than enabled in the collector-config ConfigMap. Some customers may have this setting, but as stated earlier this is in technical preview, use in production is not recommended, and customers should not expect this to be stable.

The PR that updated the protobuf definitions in stackrox/stackrox is here stackrox/stackrox#13608

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

Unit tests and integration tests were modified. No new tests were needed and CI is sufficient.

@JoukoVirtanen JoukoVirtanen force-pushed the jv-update-CollectorConfig-protobuf branch from 29d9278 to a8909a2 Compare January 2, 2025 19:40
@JoukoVirtanen JoukoVirtanen changed the base branch from master to jv-ROX-27396-collector-configloader-should-not-need-to-be-modified-when-the-protobuf-is January 2, 2025 21:16
@JoukoVirtanen JoukoVirtanen force-pushed the jv-update-CollectorConfig-protobuf branch from 8ec3ee1 to 60640e4 Compare January 11, 2025 00:47
@JoukoVirtanen JoukoVirtanen changed the base branch from jv-ROX-27396-collector-configloader-should-not-need-to-be-modified-when-the-protobuf-is to master January 11, 2025 02:39
@JoukoVirtanen JoukoVirtanen changed the title Jv update collector config protobuf ROX-26734: Improvements to CollectorConfig protobuf definitions Jan 11, 2025
@JoukoVirtanen JoukoVirtanen marked this pull request as ready for review January 11, 2025 02:43
@JoukoVirtanen JoukoVirtanen requested a review from a team as a code owner January 11, 2025 02:43
collector/lib/CollectorConfig.h Outdated Show resolved Hide resolved
collector/lib/CollectorConfig.h Outdated Show resolved Hide resolved
collector/lib/ConfigLoader.cpp Outdated Show resolved Hide resolved
collector/lib/ConfigLoader.cpp Outdated Show resolved Hide resolved
integration-tests/suites/k8s/config_reload.go Outdated Show resolved Hide resolved
@JoukoVirtanen JoukoVirtanen requested a review from Stringy January 14, 2025 16:58
@JoukoVirtanen JoukoVirtanen changed the title ROX-26734: Improvements to CollectorConfig protobuf definitions ROX-27634: Improvements to CollectorConfig protobuf definitions Jan 14, 2025
@JoukoVirtanen JoukoVirtanen merged commit e024d11 into master Jan 16, 2025
68 of 71 checks passed
@JoukoVirtanen JoukoVirtanen deleted the jv-update-CollectorConfig-protobuf branch January 16, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants