mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Repair description
This commit is contained in:
parent
4f2f51602e
commit
5796b7a32e
@ -61,9 +61,9 @@ type CheckpointData struct {
|
|||||||
type PodSandboxCheckpoint struct {
|
type PodSandboxCheckpoint struct {
|
||||||
// Version of the pod sandbox checkpoint schema.
|
// Version of the pod sandbox checkpoint schema.
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
// Pod name of the sandbox. Same as the pod name in the PodSpec.
|
// Pod name of the sandbox. Same as the pod name in the Pod ObjectMeta.
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
// Pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
|
// Pod namespace of the sandbox. Same as the pod namespace in the Pod ObjectMeta.
|
||||||
Namespace string `json:"namespace"`
|
Namespace string `json:"namespace"`
|
||||||
// Data to checkpoint for pod sandbox.
|
// Data to checkpoint for pod sandbox.
|
||||||
Data *CheckpointData `json:"data,omitempty"`
|
Data *CheckpointData `json:"data,omitempty"`
|
||||||
|
@ -718,7 +718,7 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, podStatus *kubecontaine
|
|||||||
var msg string
|
var msg string
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
klog.V(4).Infof("Creating sandbox for pod %q", format.Pod(pod))
|
klog.V(4).Infof("Creating PodSandbox for pod %q", format.Pod(pod))
|
||||||
createSandboxResult := kubecontainer.NewSyncResult(kubecontainer.CreatePodSandbox, format.Pod(pod))
|
createSandboxResult := kubecontainer.NewSyncResult(kubecontainer.CreatePodSandbox, format.Pod(pod))
|
||||||
result.AddSyncResult(createSandboxResult)
|
result.AddSyncResult(createSandboxResult)
|
||||||
podSandboxID, msg, err = m.createPodSandbox(pod, podContainerChanges.Attempt)
|
podSandboxID, msg, err = m.createPodSandbox(pod, podContainerChanges.Attempt)
|
||||||
|
@ -886,11 +886,11 @@ func (m *LinuxPodSandboxConfig) GetSysctls() map[string]string {
|
|||||||
// PodSandbox in its user interface for better user experience. For example,
|
// PodSandbox in its user interface for better user experience. For example,
|
||||||
// the runtime can construct a unique PodSandboxName based on the metadata.
|
// the runtime can construct a unique PodSandboxName based on the metadata.
|
||||||
type PodSandboxMetadata struct {
|
type PodSandboxMetadata struct {
|
||||||
// Pod name of the sandbox. Same as the pod name in the PodSpec.
|
// Pod name of the sandbox. Same as the pod name in the Pod ObjectMeta.
|
||||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
// Pod UID of the sandbox. Same as the pod UID in the PodSpec.
|
// Pod UID of the sandbox. Same as the pod UID in the Pod ObjectMeta.
|
||||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
|
||||||
// Pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
|
// Pod namespace of the sandbox. Same as the pod namespace in the Pod ObjectMeta.
|
||||||
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||||
// Attempt number of creating the sandbox. Default: 0.
|
// Attempt number of creating the sandbox. Default: 0.
|
||||||
Attempt uint32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
Attempt uint32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"`
|
||||||
|
@ -306,11 +306,11 @@ message LinuxPodSandboxConfig {
|
|||||||
// PodSandbox in its user interface for better user experience. For example,
|
// PodSandbox in its user interface for better user experience. For example,
|
||||||
// the runtime can construct a unique PodSandboxName based on the metadata.
|
// the runtime can construct a unique PodSandboxName based on the metadata.
|
||||||
message PodSandboxMetadata {
|
message PodSandboxMetadata {
|
||||||
// Pod name of the sandbox. Same as the pod name in the PodSpec.
|
// Pod name of the sandbox. Same as the pod name in the Pod ObjectMeta.
|
||||||
string name = 1;
|
string name = 1;
|
||||||
// Pod UID of the sandbox. Same as the pod UID in the PodSpec.
|
// Pod UID of the sandbox. Same as the pod UID in the Pod ObjectMeta.
|
||||||
string uid = 2;
|
string uid = 2;
|
||||||
// Pod namespace of the sandbox. Same as the pod namespace in the PodSpec.
|
// Pod namespace of the sandbox. Same as the pod namespace in the Pod ObjectMeta.
|
||||||
string namespace = 3;
|
string namespace = 3;
|
||||||
// Attempt number of creating the sandbox. Default: 0.
|
// Attempt number of creating the sandbox. Default: 0.
|
||||||
uint32 attempt = 4;
|
uint32 attempt = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user