Skip to content

Commit

Permalink
CRI: clarify mount host_path docs
Browse files Browse the repository at this point in the history
Mention that the `host_path` can be empty if image volumes are being
used.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Oct 8, 2024
1 parent 0b91def commit ce9351c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ enum MountPropagation {
message Mount {
// Path of the mount within the container.
string container_path = 1;
// Path of the mount on the host. If the hostPath doesn't exist, then runtimes
// should report error. If the hostpath is a symbolic link, runtimes should
// Path of the mount on the host. Has to be empty if the image field below
// is provided, because those fields are mutually exclusive. If the image
// field below is nil and the host path doesn't exist, then runtimes should
// report an error. If the hostpath is a symbolic link, runtimes should
// follow the symlink and mount the real destination to container.
string host_path = 2;
// If set, the mount is read-only.
Expand Down

0 comments on commit ce9351c

Please sign in to comment.