Skip to content

refactor: support direct rule evaluation #225

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

Merged
merged 3 commits into from
Aug 6, 2024

Conversation

TylerGillson
Copy link
Member

Issue

N/A

Description

Refactor to support direct, in-process evaluation of Azure rules.

Required by:

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner August 5, 2024 23:41
@TylerGillson TylerGillson requested a review from ahmad-ibra August 5, 2024 23:41
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement Enhancement to an existing feature labels Aug 5, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

Attention: Patch coverage is 75.60976% with 10 lines in your changes missing coverage. Please review.

Files Patch % Lines
pkg/validate/validate.go 73.33% 6 Missing and 2 partials ⚠️
internal/controller/azurevalidator_controller.go 60.00% 0 Missing and 2 partials ⚠️
@@            Coverage Diff             @@
##             main     #225      +/-   ##
==========================================
- Coverage   66.48%   65.81%   -0.68%     
==========================================
  Files           9       10       +1     
  Lines         561      550      -11     
==========================================
- Hits          373      362      -11     
- Misses        175      176       +1     
+ Partials       13       12       -1     
Files Coverage Δ
api/v1alpha1/azurevalidator_types.go 100.00% <100.00%> (ø)
pkg/azure/community_image.go 97.05% <ø> (ø)
pkg/azure/rbac.go 93.22% <ø> (ø)
pkg/azure/rbac_permissions.go 100.00% <ø> (ø)
pkg/utils/azure/azure.go 3.38% <ø> (ø)
pkg/utils/azureerrors/errors.go 73.33% <ø> (ø)
pkg/utils/maps/maps.go 100.00% <ø> (ø)
internal/controller/azurevalidator_controller.go 71.15% <60.00%> (-5.62%) ⬇️
pkg/validate/validate.go 73.33% <73.33%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1651b8e...91b05fb. Read the comment docs.

@TylerGillson TylerGillson merged commit bec4a0b into main Aug 6, 2024
8 checks passed
@TylerGillson TylerGillson deleted the refactor/direct-evaluation branch August 6, 2024 00:08
TylerGillson added a commit that referenced this pull request Aug 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.0.15](v0.0.14...v0.0.15)
(2024-08-06)


### Other

* add hook to install validator crds in devspace
([#221](#221))
([8982a0d](8982a0d))
* remove unused helm value
([#223](#223))
([1651b8e](1651b8e))


### Docs

* principal ID and rules in readme
([#222](#222))
([db29a62](db29a62))


### Dependency Updates

* **deps:** update module github.com/onsi/gomega to v1.34.1
([#217](#217))
([4c5d239](4c5d239))
* **deps:** update module github.com/validator-labs/validator to v0.0.51
([#216](#216))
([be40010](be40010))
* **deps:** update module github.com/validator-labs/validator to v0.1.0
([#220](#220))
([57205c6](57205c6))


### Refactoring

* return error from validate, accept context
([#226](#226))
([58989c0](58989c0))
* support direct rule evaluation
([#225](#225))
([bec4a0b](bec4a0b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing feature size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant