mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Remove dockershim comments in kubelet
Signed-off-by: yanghesong <hesong.yang@foxmail.com>
This commit is contained in:
parent
9d2b361ebc
commit
4cab028a92
@ -44,20 +44,20 @@ func fromV1alpha2ContainerStatus(from *v1alpha2.ContainerStatus) *runtimeapi.Con
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fromV1alpha2ExecResponse(from *v1alpha2.ExecResponse) *runtimeapi.ExecResponse {
|
func fromV1alpha2ExecResponse(from *v1alpha2.ExecResponse) *runtimeapi.ExecResponse {
|
||||||
// If this function changes, also adapt the corresponding Exec dockershim code in
|
// If this function changes, also adapt the corresponding Exec code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*runtimeapi.ExecResponse)(unsafe.Pointer(from))
|
return (*runtimeapi.ExecResponse)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
func fromV1alpha2AttachResponse(from *v1alpha2.AttachResponse) *runtimeapi.AttachResponse {
|
func fromV1alpha2AttachResponse(from *v1alpha2.AttachResponse) *runtimeapi.AttachResponse {
|
||||||
// If this function changes, also adapt the corresponding Attach dockershim code in
|
// If this function changes, also adapt the corresponding Attach code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*runtimeapi.AttachResponse)(unsafe.Pointer(from))
|
return (*runtimeapi.AttachResponse)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
func fromV1alpha2PortForwardResponse(from *v1alpha2.PortForwardResponse) *runtimeapi.PortForwardResponse {
|
func fromV1alpha2PortForwardResponse(from *v1alpha2.PortForwardResponse) *runtimeapi.PortForwardResponse {
|
||||||
// If this function changes, also adapt the corresponding PortForward dockershim code in
|
// If this function changes, also adapt the corresponding PortForward code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*runtimeapi.PortForwardResponse)(unsafe.Pointer(from))
|
return (*runtimeapi.PortForwardResponse)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,20 +114,20 @@ func v1alpha2LinuxContainerResources(from *runtimeapi.LinuxContainerResources) *
|
|||||||
}
|
}
|
||||||
|
|
||||||
func v1alpha2ExecRequest(from *runtimeapi.ExecRequest) *v1alpha2.ExecRequest {
|
func v1alpha2ExecRequest(from *runtimeapi.ExecRequest) *v1alpha2.ExecRequest {
|
||||||
// If this function changes, also adapt the corresponding Exec dockershim code in
|
// If this function changes, also adapt the corresponding Exec code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*v1alpha2.ExecRequest)(unsafe.Pointer(from))
|
return (*v1alpha2.ExecRequest)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
func v1alpha2AttachRequest(from *runtimeapi.AttachRequest) *v1alpha2.AttachRequest {
|
func v1alpha2AttachRequest(from *runtimeapi.AttachRequest) *v1alpha2.AttachRequest {
|
||||||
// If this function changes, also adapt the corresponding Attach dockershim code in
|
// If this function changes, also adapt the corresponding Attach code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*v1alpha2.AttachRequest)(unsafe.Pointer(from))
|
return (*v1alpha2.AttachRequest)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
func v1alpha2PortForwardRequest(from *runtimeapi.PortForwardRequest) *v1alpha2.PortForwardRequest {
|
func v1alpha2PortForwardRequest(from *runtimeapi.PortForwardRequest) *v1alpha2.PortForwardRequest {
|
||||||
// If this function changes, also adapt the corresponding PortForward dockershim code in
|
// If this function changes, also adapt the corresponding PortForward code in
|
||||||
// pkg/kubelet/dockershim/docker_streaming.go
|
// pkg/kubelet/cri/remote/remote_runtime.go
|
||||||
return (*v1alpha2.PortForwardRequest)(unsafe.Pointer(from))
|
return (*v1alpha2.PortForwardRequest)(unsafe.Pointer(from))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ const (
|
|||||||
type CRIVersion string
|
type CRIVersion string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// APIVersionV1 references the v1 CRI API.
|
// CRIVersionV1 references the v1 CRI API.
|
||||||
CRIVersionV1 CRIVersion = "v1"
|
CRIVersionV1 CRIVersion = "v1"
|
||||||
|
|
||||||
// CRIVersionV1alpha2 references the v1alpha2 CRI API.
|
// CRIVersionV1alpha2 references the v1alpha2 CRI API.
|
||||||
|
Loading…
Reference in New Issue
Block a user