-
Notifications
You must be signed in to change notification settings - Fork 18.8k
fix issue #12281 #12527
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 issue #12281 #12527
Conversation
Signed-off-by: Simei He <hesimei@zju.edu.cn>
Setting this to design review to discuss whether we want to do this. The code looks good though. |
Really seems like this should use validateRepositoryName rather than duplicate that logic. |
Thx @mmdriley |
I suggest using validateRepositoryName precisely because it's so commonly used. That's no accident -- it was a lot of work to centralize repository name parsing and validation. |
@@ -40,6 +59,10 @@ func (s *TagStore) Pull(image string, tag string, imagePullConfig *ImagePullConf | |||
return err | |||
} | |||
|
|||
if err := validateRepoNotScratch(repoInfo.RemoteName); err != nil { |
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.
please use validateRepoName(repoInfo.LocalName)
instead. Defining a separate validateRepoNotScratch()
function is not necessary.
needs rebase |
closing as there is a new pr #12655 |
Fix issue #12281
Reject the client
pull
request for special casescratch
.Signed-off-by: Simei He hesimei@zju.edu.cn