mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-24 20:06:15 +00:00
Clarify runtime behavior for symlinked and non-exist hostPath
This commit is contained in:
@@ -434,7 +434,9 @@ func (m *PortMapping) GetHostIp() string {
|
||||
type Mount struct {
|
||||
// Path of the mount within the container.
|
||||
ContainerPath string `protobuf:"bytes,1,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
|
||||
// Path of the mount on the host.
|
||||
// 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
|
||||
// follow the symlink and mount the real destination to container.
|
||||
HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
|
||||
// If set, the mount is read-only.
|
||||
Readonly bool `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"`
|
||||
|
||||
@@ -171,7 +171,9 @@ enum MountPropagation {
|
||||
message Mount {
|
||||
// Path of the mount within the container.
|
||||
string container_path = 1;
|
||||
// Path of the mount on the host.
|
||||
// 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
|
||||
// follow the symlink and mount the real destination to container.
|
||||
string host_path = 2;
|
||||
// If set, the mount is read-only.
|
||||
bool readonly = 3;
|
||||
|
||||
Reference in New Issue
Block a user