-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add verification that robot account duration is not 0 #19829
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #19829 +/- ##
=======================================
Coverage 67.54% 67.55%
=======================================
Files 991 991
Lines 109171 109170 -1
Branches 2719 2719
=======================================
+ Hits 73739 73745 +6
+ Misses 31467 31459 -8
- Partials 3965 3966 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
1a9769a
to
5b99b00
Compare
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
5b99b00
to
e4e5236
Compare
@@ -375,7 +374,7 @@ func isValidLevel(l string) bool { | |||
} | |||
|
|||
func isValidDuration(d int64) bool { | |||
return d >= int64(-1) && d < math.MaxInt32 | |||
return d >= int64(-1) && d != 0 && d < math.MaxInt32 |
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.
d == -1 || (d > 0 && d <= math.MaxInt32)
is more readable?
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.
lgtm
* registryctl/api/registry/blob: fix dropped test error (#19721) Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com> * Remove robot account update quota permission (#19819) Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> Co-authored-by: Yang Jiao <yang.jiao@broadcom.com> * Cache image list with digest key (#19801) fixes #19429 Signed-off-by: stonezdj <daojunz@vmware.com> Co-authored-by: stonezdj <daojunz@vmware.com> * Add quota permissions testcase (#19822) Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> Co-authored-by: Yang Jiao <yang.jiao@broadcom.com> * deprecate gosec in makefile (#19828) remove the unused the part from makefile Signed-off-by: wang yan <wangyan@vmware.com> * Add verification that robot account duration is not 0 (#19829) Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> * fix artifact page bug (#19807) * fix artifact page bug * update testcase * Upgrade to distribution (registry) v3 alpha This includes all the benefits of the v3 distribution, but also all breaking changes. Most notably, Image Manifest v2 Schema v1 support has been dropped, as well as the `oss` and `swift` storage drivers. Currently, this still relies on v2's github.com/docker/distribution/registry/client/auth/challenge, because that code has been removed from the public API in v3. Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com> --------- Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com> Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> Signed-off-by: stonezdj <daojunz@vmware.com> Signed-off-by: wang yan <wangyan@vmware.com> Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com> Co-authored-by: Lars Lehtonen <lars.lehtonen@gmail.com> Co-authored-by: Yang Jiao <72076317+YangJiao0817@users.noreply.github.com> Co-authored-by: Yang Jiao <yang.jiao@broadcom.com> Co-authored-by: stonezdj(Daojun Zhang) <stonezdj@gmail.com> Co-authored-by: stonezdj <daojunz@vmware.com> Co-authored-by: Wang Yan <wangyan@vmware.com> Co-authored-by: ShengqiWang <124650040+ShengqiWang@users.noreply.github.com>
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> Signed-off-by: Altynbaev Dinislam <altynbayevdr@sberautotech.ru>
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Issue being fixed
Fixes #19794
Please indicate you've done the following: