mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Kubelet: implement PodStatus for new runtime API
This commit is contained in:
@@ -28,8 +28,8 @@ import (
|
||||
var (
|
||||
version = "0.1.0"
|
||||
|
||||
fakeRuntimeName = "fakeRuntime"
|
||||
fakePodSandboxIP = "192.168.192.168"
|
||||
FakeRuntimeName = "fakeRuntime"
|
||||
FakePodSandboxIP = "192.168.192.168"
|
||||
)
|
||||
|
||||
type FakePodSandbox struct {
|
||||
@@ -93,7 +93,7 @@ func (r *FakeRuntimeService) Version(apiVersion string) (*runtimeApi.VersionResp
|
||||
|
||||
return &runtimeApi.VersionResponse{
|
||||
Version: &version,
|
||||
RuntimeName: &fakeRuntimeName,
|
||||
RuntimeName: &FakeRuntimeName,
|
||||
RuntimeVersion: &version,
|
||||
RuntimeApiVersion: &version,
|
||||
}, nil
|
||||
@@ -169,7 +169,7 @@ func (r *FakeRuntimeService) PodSandboxStatus(podSandboxID string) (*runtimeApi.
|
||||
CreatedAt: s.CreatedAt,
|
||||
State: s.State,
|
||||
Network: &runtimeApi.PodSandboxNetworkStatus{
|
||||
Ip: &fakePodSandboxIP,
|
||||
Ip: &FakePodSandboxIP,
|
||||
},
|
||||
Labels: s.Labels,
|
||||
Annotations: s.Annotations,
|
||||
|
||||
Reference in New Issue
Block a user