-
Notifications
You must be signed in to change notification settings - Fork 167
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
feat(warehouse): allow discovery interval and limit configurations #2038
Conversation
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
// +kubebuilder:validation:Type=string | ||
// +kubebuilder:validation:Pattern="^([0-9]+(\\.[0-9]+)?(s|m|h))+$" |
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.
This is a common workaround for the issue described here: kubernetes/apiextensions-apiserver#56
I took the further liberty to drop ms
from the regex, as we probably do not want people to go below the seconds (and the level of precision in combination with e.g. minutes has little value).
5539107
to
d07a867
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2038 +/- ##
=======================================
Coverage 45.62% 45.63%
=======================================
Files 234 234
Lines 15998 16002 +4
=======================================
+ Hits 7299 7302 +3
- Misses 8342 8344 +2
+ Partials 357 356 -1 ☔ View full report in Codecov by Sentry. |
d07a867
to
fdecc2f
Compare
ID: meta.CommitID, | ||
Tag: meta.Tag, | ||
// A decent subject length for a commit message is 50 characters | ||
// (based on the 50/72 rule). We are nice people, and allow a |
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.
We are nice people
😂 ❤️
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.
Nice and clean.
@krancour when I woke up on Saturday I actually had a small improvement in mind, might be worth thinking about this so I can potentially implement it tomorrow. Besides the discovery:
limit: 30
subscriptions:
- discoveryLimit: 100 # overwrite Which could then also possibly result in: discovery:
interval: 1h0s # now nested |
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
fdecc2f
to
7548a95
Compare
This pull request adds the following things (as documented in the follow-up section of #1984):
The option to define a custom interval at which the Warehouse attempts to discover new artifacts (instead of the
5m0s
default).The option (for each subscription) to limit artifacts (instead of the default of
20
), with an upper limit of100
.