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