Skip to content

feat: frequency annotation helper#422

Merged
TylerGillson merged 7 commits intovalidator-labs:mainfrom
ADorigi:main
Oct 8, 2024
Merged

feat: frequency annotation helper#422
TylerGillson merged 7 commits intovalidator-labs:mainfrom
ADorigi:main

Conversation

@ADorigi
Copy link
Contributor

@ADorigi ADorigi commented Sep 29, 2024

Issue

partially resolves #358

Description

  • A constant was added to define the annotation key validation.validator.labs/reconciliation-frequency.
  • Function FrequencyFromAnnotations which accepts annotation map and returns ctrl.Result.
  • Tests for FrequencyFromAnnotations function.

@ADorigi ADorigi requested a review from a team as a code owner September 29, 2024 20:32
@ADorigi ADorigi requested a review from ahmad-ibra September 29, 2024 20:32
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement Enhancement to an existing feature labels Sep 29, 2024
Signed-off-by: Adnan Gulegulzar <gulegulzaradnan@gmail.com>
@TylerGillson
Copy link
Member

@ADorigi apologies for the delay - I was on PTO. Two small nits regarding logging, otherwise the changes look good!

@ADorigi
Copy link
Contributor Author

ADorigi commented Oct 7, 2024

No worries @TylerGillson
I have updated the logs to reflect the changes.

@TylerGillson
Copy link
Member

@ADorigi thanks for making those changes. We just need a make reviewable and it'll be good to go!

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 7, 2024
@ADorigi
Copy link
Contributor Author

ADorigi commented Oct 7, 2024

@TylerGillson
Running make reviewable made a few changes in chart/validator/values.yaml and chart/validator/README.md, which may not be as expected. Let me know if these need to be reverted.

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Oct 7, 2024
@TylerGillson
Copy link
Member

@ADorigi you needed to do a git submodule update --remote then make reviewable. I did it for you though, so no worries this time.

@TylerGillson TylerGillson self-requested a review October 7, 2024 22:19
Copy link
Member

@TylerGillson TylerGillson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 7, 2024
@codecov
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@@            Coverage Diff             @@
##             main     #422      +/-   ##
==========================================
+ Coverage   54.46%   55.01%   +0.54%     
==========================================
  Files          23       24       +1     
  Lines        1153     1167      +14     
==========================================
+ Hits          628      642      +14     
  Misses        457      457              
  Partials       68       68              
Files with missing lines Coverage Δ
pkg/plugins/plugin_frequency.go 100.00% <100.00%> (ø)

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 735df90...89e8b5a. Read the comment docs.

@TylerGillson TylerGillson merged commit b2ca83f into validator-labs:main Oct 8, 2024
TylerGillson added a commit that referenced this pull request Nov 22, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.1.13](v0.1.12...v0.1.13)
(2024-11-22)


### Features

* frequency annotation helper
([#422](#422))
([b2ca83f](b2ca83f))


### Other

* **deps:** bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1
([#438](#438))
([b69e66f](b69e66f))
* update renovate.json
([96c3ea7](96c3ea7))
* Update renovate.json
([#436](#436))
([d720806](d720806))


### Dependency Updates

* **deps:** update actions/checkout digest to 11bd719
([#430](#430))
([dcc37af](dcc37af))
* **deps:** update actions/checkout digest to eef6144
([#426](#426))
([ae9976f](ae9976f))
* **deps:** update all non-major dependencies
([#437](#437))
([8a2fb74](8a2fb74))
* **deps:** update golang.org/x/exp digest to 2d47ceb
([#439](#439))
([4f2ffdf](4f2ffdf))
* **deps:** update golang.org/x/exp digest to f66d83c
([#425](#425))
([edf709b](edf709b))
* **deps:** update kubernetes packages to v0.31.1
([#388](#388))
([5459610](5459610))
* **deps:** update kubernetes packages to v0.31.2
([#431](#431))
([16f3c2a](16f3c2a))
* **deps:** update module
buf.build/gen/go/spectrocloud/spectro-cleanup/connectrpc/go to
v1.17.0-20240205164452-95dfd137cb54.1
([#421](#421))
([274ba08](274ba08))
* **deps:** update module
buf.build/gen/go/spectrocloud/spectro-cleanup/protocolbuffers/go to
v1.35.1-20240205164452-95dfd137cb54.1
([#428](#428))
([728bbf1](728bbf1))
* **deps:** update module connectrpc.com/connect to v1.17.0
([#420](#420))
([1425343](1425343))
* **deps:** update module github.com/onsi/ginkgo/v2 to v2.21.0
([#433](#433))
([d2dbcf0](d2dbcf0))
* **deps:** update module github.com/onsi/gomega to v1.35.0
([#434](#434))
([274b277](274b277))
* **deps:** update module github.com/slack-go/slack to v0.15.0
([#429](#429))
([2ce3b4b](2ce3b4b))
* **deps:** update module github.com/validator-labs/validator-plugin-oci
to v0.3.3
([#396](#396))
([011d5bd](011d5bd))
* **deps:** update module sigs.k8s.io/cluster-api to v1.8.3
([#418](#418))
([735df90](735df90))
* **deps:** update module sigs.k8s.io/cluster-api to v1.8.4
([#427](#427))
([67fbcfc](67fbcfc))
* **deps:** update module sigs.k8s.io/controller-runtime to v0.19.0
([#392](#392))
([1c87bd3](1c87bd3))
* **deps:** update module sigs.k8s.io/controller-runtime to v0.19.1
([#432](#432))
([7b2f95a](7b2f95a))
* **deps:** update softprops/action-gh-release digest to e7a8f85
([#435](#435))
([cb388ca](cb388ca))

---
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 lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏗 Reconciliation frequency configuration via annotations

2 participants