mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Use zero TerminationGracePeriodSeconds in fixture
Pods associated with the test JobTemplate should use a zero TerminationGracePeriodSeconds to ensure they're deleted immediately. This should improve test timing assumption consistency.
This commit is contained in:
parent
3d6d57a18f
commit
60514d3d66
@ -283,7 +283,8 @@ func newCronJob(name, schedule string) *batchv2alpha1.CronJob {
|
|||||||
Completions: &completions,
|
Completions: &completions,
|
||||||
Template: v1.PodTemplateSpec{
|
Template: v1.PodTemplateSpec{
|
||||||
Spec: v1.PodSpec{
|
Spec: v1.PodSpec{
|
||||||
RestartPolicy: v1.RestartPolicyOnFailure,
|
RestartPolicy: v1.RestartPolicyOnFailure,
|
||||||
|
TerminationGracePeriodSeconds: &zero,
|
||||||
Containers: []v1.Container{
|
Containers: []v1.Container{
|
||||||
{
|
{
|
||||||
Name: "c",
|
Name: "c",
|
||||||
|
Loading…
Reference in New Issue
Block a user