mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-29 05:22:37 +00:00
fix vet error in pkg/kubelet/kubelet_test.go
pkg/kubelet/kubelet_test.go:1573: *k8s.io/kubernetes/pkg/kubelet/container/testing.FakePod composite literal uses unkeyed fields
This commit is contained in:
parent
b6366d28e6
commit
0d63b55944
@ -1570,7 +1570,7 @@ func TestDoesNotDeletePodDirsIfContainerIsRunning(t *testing.T) {
|
|||||||
// Pretend the pod is deleted from apiserver, but is still active on the node.
|
// Pretend the pod is deleted from apiserver, but is still active on the node.
|
||||||
// The pod directory should not be removed.
|
// The pod directory should not be removed.
|
||||||
pods = []*v1.Pod{}
|
pods = []*v1.Pod{}
|
||||||
testKubelet.fakeRuntime.PodList = []*containertest.FakePod{{runningPod, ""}}
|
testKubelet.fakeRuntime.PodList = []*containertest.FakePod{{Pod: runningPod, NetnsPath: ""}}
|
||||||
syncAndVerifyPodDir(t, testKubelet, pods, []*v1.Pod{apiPod}, true)
|
syncAndVerifyPodDir(t, testKubelet, pods, []*v1.Pod{apiPod}, true)
|
||||||
|
|
||||||
// The pod is deleted and also not active on the node. The pod directory
|
// The pod is deleted and also not active on the node. The pod directory
|
||||||
|
Loading…
Reference in New Issue
Block a user