"git@developer.sourcefind.cn:tsoc/superbenchmark.git" did not exist on "2538a7eeddfd37b8f5aa84ce04316ad687ab6b3c"
Commit ffc2a6e7 authored by Your Name's avatar Your Name
Browse files

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

parent 8fe9b2d0
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
go.sum go.sum
.vscode .vscode
.aider* .aider*
.lingma
\ No newline at end of file
...@@ -103,6 +103,10 @@ func main() { ...@@ -103,6 +103,10 @@ func main() {
} else { } else {
c.User = make([]string, 0, 4) c.User = make([]string, 0, 4)
for _, v := range i.Mounts { for _, v := range i.Mounts {
if !v.RW {
// 如果挂载点是只读的,跳过
continue
}
if RegUserPublic.MatchString(v.Source) { if RegUserPublic.MatchString(v.Source) {
f := RegUserPublic.FindStringSubmatch(v.Source) f := RegUserPublic.FindStringSubmatch(v.Source)
if len(f) >= 2 { 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