-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fixed exceptions in vector objects #149
Conversation
Signed-off-by: David Wertenteil <[email protected]>
PR Description updated to latest commit (e75ce58) |
PR Review
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫥
Signed-off-by: David Wertenteil <[email protected]>
User description
RegoResponseVectorObject
RegoResponseVectorObject
objects when the exception had a label (also if the label was not in the vector)Type
bug_fix, enhancement, tests
Description
k8s-interface
and utilizeobjectsenvelopes
andlocalworkload
.comparator.go
.isTypeWorkload
andisTypeRegoResponseVector
for accurate type determination.RegoResponseVector
objects, optimizing the handling of exceptions.comparator
andexceptionprocessor
.Changes walkthrough
comparator.go
Refactor Workload Type Checks and Simplify Comparisons
exceptions/comparator.go
k8s-interface
for workload type checks.objectsenvelopes
andlocalworkload
for enhanced type checks.isTypeWorkload
andisTypeRegoResponseVector
functions forprecise type determination.
exceptionprocessor.go
Enhance Exception Processing and Comparison Logic
exceptions/exceptionprocessor.go
RegoResponseVector
objects.metadataHasException
anditerateRegoResponseVector
forimproved exception handling.
comparator_test.go
Comprehensive Unit Tests for Comparator Logic
exceptions/comparator_test.go
comparator
methods.isTypeWorkload
andisTypeRegoResponseVector
.cases.
exceptionprocessor_test.go
Unit Tests for Enhanced Exception Processing Logic
exceptions/exceptionprocessor_test.go
hasException
method with various scenarios.RegoResponseVector
objects.designators_cache.go
Code Reorganization in Designators Cache
exceptions/designators_cache.go