mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 19:36:22 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. CRI: define the mount behavior when host path does not exist **What this PR does / why we need it**: This PR defines the mounting behavior when host path does not exist in CRI. Specifically, - If the hostPath doesn't exist (e.g. hostPath volume), runtimes should report errors - If the specified hostPath is a symlink, runtimes should follow the symlink and mount the real destination to the container **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #52318 **Special notes for your reviewer**: **Release note**: ```release-note CRI: define the mount behavior when host path does not exist: runtime should report error if the host path doesn't exist ```