Merge pull request #14744 from wy65701436/release-1.10.0-fix-tk

fix registry token issue
This commit is contained in:
Daniel Jiang 2021-04-25 22:46:25 +08:00 committed by GitHub
commit 279c8d3565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,6 +204,9 @@ func resourceScopes(sCtx security.Context, rc rbac.Resource) map[string]struct{}
if ok1 && ok2 && ok3 { if ok1 && ok2 && ok3 {
res["*"] = struct{}{} res["*"] = struct{}{}
} }
if ok1 && !ok2 {
res["pull"] = struct{}{}
}
return res return res
} }