mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Fix failing test
This commit is contained in:
parent
adc97bf936
commit
5ddcef24a6
@ -54,9 +54,11 @@ func newTestCacher(client tools.EtcdClient) *storage.Cacher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func makeTestPod(name string) *api.Pod {
|
func makeTestPod(name string) *api.Pod {
|
||||||
|
gracePeriod := int64(30)
|
||||||
return &api.Pod{
|
return &api.Pod{
|
||||||
ObjectMeta: api.ObjectMeta{Namespace: "ns", Name: name},
|
ObjectMeta: api.ObjectMeta{Namespace: "ns", Name: name},
|
||||||
Spec: api.PodSpec{
|
Spec: api.PodSpec{
|
||||||
|
TerminationGracePeriodSeconds: &gracePeriod,
|
||||||
DNSPolicy: api.DNSClusterFirst,
|
DNSPolicy: api.DNSClusterFirst,
|
||||||
RestartPolicy: api.RestartPolicyAlways,
|
RestartPolicy: api.RestartPolicyAlways,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user