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

refactor: expose sinks pkg for direct rule evaluation; add ValidationResult creation & finalization helpers #366

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

TylerGillson
Copy link
Member

@TylerGillson TylerGillson commented Aug 4, 2024

Issue

N/A

Description

Expose public helpers for building and finalizing validation results.

Required for validator-labs/validatorctl#102

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
…tters

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@TylerGillson TylerGillson requested a review from a team as a code owner August 4, 2024 23:13
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 4, 2024
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 31.42857% with 24 lines in your changes missing coverage. Please review.

Files Patch % Lines
pkg/validationresult/validation_result.go 31.42% 23 Missing and 1 partial ⚠️
@@            Coverage Diff             @@
##             main     #366      +/-   ##
==========================================
- Coverage   55.35%   54.21%   -1.14%     
==========================================
  Files          21       21              
  Lines        1102     1127      +25     
==========================================
+ Hits          610      611       +1     
- Misses        425      448      +23     
- Partials       67       68       +1     
Files Coverage Δ
cmd/main.go 0.00% <ø> (ø)
internal/controller/validationresult_controller.go 82.22% <ø> (ø)
pkg/kube/kube.go 100.00% <ø> (ø)
pkg/sinks/alertmanager.go 81.60% <ø> (ø)
pkg/sinks/sink.go 100.00% <ø> (ø)
pkg/sinks/slack.go 0.00% <ø> (ø)
pkg/test/controller_runtime_client.go 35.08% <ø> (ø)
pkg/test/controller_runtime_patchhelper.go 100.00% <ø> (ø)
pkg/validationresult/validation_result.go 76.47% <31.42%> (-23.53%) ⬇️

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 7c09687...06c7fc8. Read the comment docs.

@TylerGillson TylerGillson changed the title refactor: direct evaluation refactor: expose sinks pkg for direct rule evaluation; add ValidationResult creation & finalization helpers Aug 5, 2024
@TylerGillson TylerGillson merged commit 056ee62 into main Aug 5, 2024
7 of 8 checks passed
@TylerGillson TylerGillson deleted the refactor/direct-evaluation branch August 5, 2024 15:50
TylerGillson added a commit that referenced this pull request Aug 5, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.1](v0.1.0...v0.1.1)
(2024-08-05)


### Features

* add values for maas plugin
([#364](#364))
([7c09687](7c09687))
* HTTP basic authentication secrets for network plugin
([#367](#367))
([128041b](128041b))


### Dependency Updates

* **deps:** update module github.com/onsi/gomega to v1.34.1
([#344](#344))
([5144078](5144078))


### Refactoring

* expose sinks pkg for direct rule evaluation; add ValidationResult
creation & finalization helpers
([#366](#366))
([056ee62](056ee62))

---
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
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