Skip to content

Commit

Permalink
Merge pull request #1 from liangjingtao11/main
Browse files Browse the repository at this point in the history
fix nri removeMount does not work bug
  • Loading branch information
yylt committed Jun 7, 2024
2 parents 7977ced + 7da5ebf commit 18658e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/adaptation/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ func (r *result) adjustMounts(mounts []*Mount, plugin string) error {
r.reply.adjust.Mounts = append(r.reply.adjust.Mounts, m)
}

// need add del mount, containerd needs to process this del mounts
for _, m := range del {
r.reply.adjust.Mounts = append(r.reply.adjust.Mounts, m)
}

// finally, apply additions/modifications to plugin container creation request
create.Container.Mounts = append(create.Container.Mounts, add...)

Expand Down

0 comments on commit 18658e1

Please sign in to comment.