Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
liming6
dcu-process-montor
Commits
ffc2a6e7
"git@developer.sourcefind.cn:tsoc/superbenchmark.git" did not exist on "2538a7eeddfd37b8f5aa84ce04316ad687ab6b3c"
Commit
ffc2a6e7
authored
Apr 10, 2026
by
Your Name
Browse files
fix pod挂载点检查是否可写,如果不可写,跳过
parent
8fe9b2d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
.gitignore
.gitignore
+1
-0
cmd/pid_of_docker/main.go
cmd/pid_of_docker/main.go
+4
-0
No files found.
.gitignore
View file @
ffc2a6e7
...
@@ -2,3 +2,4 @@
...
@@ -2,3 +2,4 @@
go.sum
go.sum
.vscode
.vscode
.aider*
.aider*
.lingma
\ No newline at end of file
cmd/pid_of_docker/main.go
View file @
ffc2a6e7
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment