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

POC for using stackrox/storage/ResourceCollection #1620

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robbycochran
Copy link
Collaborator

@robbycochran robbycochran commented Mar 28, 2024

Description

Example for using a ResourceCollection storage object as namespace filter for runtime config.
Updated stackrox proto to 4.4 to get latest version of the ResourceCollection proto, which also required including transitive dependencies.

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

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

as filter object for runtime config
@JoukoVirtanen
Copy link
Contributor

JoukoVirtanen commented Mar 29, 2024

Looks like a good start. Thanks for doing this. Instead of doing a traditional PR review I have decided to build on your PR. My PR is here #1622

Improvements include use of the AND operator, checking cluster level rules, refactoring to reduce nesting, and more unit tests.

@JoukoVirtanen
Copy link
Contributor

Looks like a good start. Thanks for doing this. Instead of doing a traditional PR review I have decided to build on your PR. My PR is here #1622

Improvements include use of the AND operator, checking cluster level rules, refactoring to reduce nesting, and more unit tests.

I also added the ability to check if there is a match in the embedded collections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants