-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: Do NOT require list permissions on a single set of tags #228
Conversation
b159e10
to
b4f82b2
Compare
@@ -172,8 +172,6 @@ func decodeTagData(body io.ReadCloser) ([]string, map[string]manifest.Manifest, | |||
return nil, nil, err | |||
} | |||
|
|||
tagManifests = manifest.MapByTag(tagManifests) |
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 was a useless line 😆
@@ -263,6 +263,7 @@ func ParseRef(ref string) (*Repository, error) { | |||
refParts := strings.Split(fullRef, "=") | |||
fullRepo = refParts[0] | |||
repoTags = strings.Split(refParts[1], ",") | |||
isSingle = true |
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.
a set of single tags should be also classified as "single"
tagManifests := make(map[string]manifest.Manifest) | ||
|
||
for _, tagName := range repoTags { | ||
tagManifests[tagName] = manifest.Manifest{} |
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 would be filled later... GCR allows you to get some extra information at this step, but it's available only on list operation which we will not perform if we are looking for the set of single tags only...
Looks cool! I'll try and build this and try it out :D |
This is SO MUCH FASTER 😁 |
First, thank you for the swift review @cablespaghetti 🙇
I think this may be related to Original issue cases were error 401 because of list requests instead of "blind" get ones 🙂 Could you please add concurrency limits for quay:
❓
P.S.: |
I agree @ivanilves this "429 Too Many Requests" is a separate issue 👍 |
closes #222