Ignore reading-only judgment to support CDI volume
Downgrade log level for task exit.
This commit is contained in:
parent
a3c777afd1
commit
90d73c9e88
@ -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()
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user