mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Merge pull request #1147 from dchen1107/restart
Introduce the simplest RestartPolicy and handling.
This commit is contained in:
@@ -52,7 +52,8 @@ func CreateValidPod(name, namespace string) kubelet.Pod {
|
||||
Name: name,
|
||||
Namespace: namespace,
|
||||
Manifest: api.ContainerManifest{
|
||||
Version: "v1beta1",
|
||||
Version: "v1beta1",
|
||||
RestartPolicy: api.RestartPolicy{Always: &api.RestartPolicyAlways{}},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@@ -105,8 +105,12 @@ func TestExtractFromHTTP(t *testing.T) {
|
||||
manifests: api.ContainerManifest{Version: "v1beta1", ID: "foo"},
|
||||
expected: CreatePodUpdate(kubelet.SET,
|
||||
kubelet.Pod{
|
||||
Name: "foo",
|
||||
Manifest: api.ContainerManifest{Version: "v1beta1", ID: "foo"},
|
||||
Name: "foo",
|
||||
Manifest: api.ContainerManifest{
|
||||
Version: "v1beta1",
|
||||
ID: "foo",
|
||||
RestartPolicy: api.RestartPolicy{Always: &api.RestartPolicyAlways{}},
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user