Skip to content

Commit e9f0ea6

Browse files
authored
Merge pull request kubernetes#127920 from saschagrunert/mount-hostpath-docs
CRI: clarify `Mount.host_path` docs
2 parents 1bda3ef + ce9351c commit e9f0ea6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.pb.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/cri-api/pkg/apis/runtime/v1/api.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,10 @@ enum MountPropagation {
221221
message Mount {
222222
// Path of the mount within the container.
223223
string container_path = 1;
224-
// Path of the mount on the host. If the hostPath doesn't exist, then runtimes
225-
// should report error. If the hostpath is a symbolic link, runtimes should
224+
// Path of the mount on the host. Has to be empty if the image field below
225+
// is provided, because those fields are mutually exclusive. If the image
226+
// field below is nil and the host path doesn't exist, then runtimes should
227+
// report an error. If the hostpath is a symbolic link, runtimes should
226228
// follow the symlink and mount the real destination to container.
227229
string host_path = 2;
228230
// If set, the mount is read-only.

0 commit comments

Comments
 (0)