From a9add11578bab2f87dc897b0f37ffa7c12408a73 Mon Sep 17 00:00:00 2001 From: wang Date: Thu, 13 Mar 2025 13:07:41 +0800 Subject: [PATCH] Ignore reading-only judgment --- internal/cri/server/container_image_mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cri/server/container_image_mount.go b/internal/cri/server/container_image_mount.go index b8d9cf59c..03ddbc97e 100644 --- a/internal/cri/server/container_image_mount.go +++ b/internal/cri/server/container_image_mount.go @@ -80,7 +80,7 @@ func (c *criService) mutateImageMount( return fmt.Errorf("hostpath must be empty while mount image: %+v", extraMount) } 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()