mirror of https://github.com/k3s-io/k3s
Merge pull request #73836 from Random-Liu/clarify-hostname-in-cri
Clarify hostname emptiness in CRI.pull/564/head
commit
5bedff6625
|
@ -736,7 +736,8 @@ type PodSandboxConfig struct {
|
||||||
// operation. The runtime may also use this information to improve UX, such
|
// operation. The runtime may also use this information to improve UX, such
|
||||||
// as by constructing a readable name.
|
// as by constructing a readable name.
|
||||||
Metadata *PodSandboxMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
|
Metadata *PodSandboxMetadata `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
|
||||||
// Hostname of the sandbox.
|
// Hostname of the sandbox. Hostname could only be empty when the pod
|
||||||
|
// network namespace is NODE.
|
||||||
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
|
||||||
// Path to the directory on the host in which container log files are
|
// Path to the directory on the host in which container log files are
|
||||||
// stored.
|
// stored.
|
||||||
|
|
|
@ -313,7 +313,8 @@ message PodSandboxConfig {
|
||||||
// operation. The runtime may also use this information to improve UX, such
|
// operation. The runtime may also use this information to improve UX, such
|
||||||
// as by constructing a readable name.
|
// as by constructing a readable name.
|
||||||
PodSandboxMetadata metadata = 1;
|
PodSandboxMetadata metadata = 1;
|
||||||
// Hostname of the sandbox.
|
// Hostname of the sandbox. Hostname could only be empty when the pod
|
||||||
|
// network namespace is NODE.
|
||||||
string hostname = 2;
|
string hostname = 2;
|
||||||
// Path to the directory on the host in which container log files are
|
// Path to the directory on the host in which container log files are
|
||||||
// stored.
|
// stored.
|
||||||
|
|
Loading…
Reference in New Issue