Commit ffc2a6e7 authored by Your Name's avatar Your Name
Browse files

fix pod挂载点检查是否可写,如果不可写,跳过

parent 8fe9b2d0
......@@ -2,3 +2,4 @@
go.sum
.vscode
.aider*
.lingma
\ No newline at end of file
......@@ -103,6 +103,10 @@ func main() {
} else {
c.User = make([]string, 0, 4)
for _, v := range i.Mounts {
if !v.RW {
// 如果挂载点是只读的,跳过
continue
}
if RegUserPublic.MatchString(v.Source) {
f := RegUserPublic.FindStringSubmatch(v.Source)
if len(f) >= 2 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment