Skip to content

Commit 116ec25

Browse files
committed
debug for cache check owner
1 parent 87ef30c commit 116ec25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/http/data.go

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func CheckPathOwner(r *http.Request, prefix string) bool {
8585
pvc := ""
8686
if drives.IsBaseDrives(srcType) {
8787
pvc = rpc.ExtractPvcFromURL(src)
88+
klog.Infof("pvc: %s", pvc)
8889
if !strings.HasPrefix(pvc, "pvc-userspace-"+bfl+"-") && !strings.HasPrefix(pvc, "pvc-appcache-"+bfl+"-") {
8990
return false
9091
}
@@ -93,6 +94,7 @@ func CheckPathOwner(r *http.Request, prefix string) bool {
9394
if prefix == "/api/paste" || (prefix == "/api/resources" && r.Method == http.MethodPatch) {
9495
if drives.IsBaseDrives(dstType) {
9596
pvc = rpc.ExtractPvcFromURL(src)
97+
klog.Infof("pvc: %s", pvc)
9698
if !strings.HasPrefix(pvc, "pvc-userspace-"+bfl+"-") && !strings.HasPrefix(pvc, "pvc-appcache-"+bfl+"-") {
9799
return false
98100
}

0 commit comments

Comments
 (0)