Ignore reading-only judgment to support CDI volume

Downgrade log level for task exit.
This commit is contained in:
wang 2025-03-13 13:07:41 +08:00 committed by Liyi Meng
parent a3c777afd1
commit 90d73c9e88
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ func (c *criService) mutateImageMount(
return fmt.Errorf("hostpath must be empty while mount image: %+v", extraMount) return fmt.Errorf("hostpath must be empty while mount image: %+v", extraMount)
} }
if !extraMount.GetReadonly() { if !extraMount.GetReadonly() {
return fmt.Errorf("readonly must be true while mount image: %+v", extraMount) // return fmt.Errorf("readonly must be true while mount image: %+v", extraMount)
} }
ref := imageSpec.GetImage() ref := imageSpec.GetImage()

View File

@ -43,7 +43,7 @@ type podSandboxEventHandler struct {
func (p *podSandboxEventHandler) HandleEvent(any interface{}) error { func (p *podSandboxEventHandler) HandleEvent(any interface{}) error {
switch e := any.(type) { switch e := any.(type) {
case *eventtypes.TaskExit: case *eventtypes.TaskExit:
log.L.Infof("TaskExit event in podsandbox handler %+v", e) log.L.Debugf("TaskExit event in podsandbox handler %+v", e)
// Use ID instead of ContainerID to rule out TaskExit event for exec. // Use ID instead of ContainerID to rule out TaskExit event for exec.
sb := p.controller.store.Get(e.ID) sb := p.controller.store.Get(e.ID)
if sb == nil { if sb == nil {