diff --git a/controllers/configuration_controller.go b/controllers/configuration_controller.go index 5265ea62..64eec5dd 100644 --- a/controllers/configuration_controller.go +++ b/controllers/configuration_controller.go @@ -301,7 +301,6 @@ func assembleTerraformJob(name, jobName string, configuration *v1beta1.Configura envs []v1.EnvVar, executionType TerraformExecutionType) *batchv1.Job { var parallelism int32 = 1 var completions int32 = 1 - var ttlSecondsAfterFinished int32 = 0 initContainerVolumeMounts := []v1.VolumeMount{ { @@ -334,8 +333,6 @@ func assembleTerraformJob(name, jobName string, configuration *v1beta1.Configura }}, }, Spec: batchv1.JobSpec{ - // TODO(zzxwill) Not enabled in Kubernetes cluster lower than v1.21 - TTLSecondsAfterFinished: &ttlSecondsAfterFinished, Parallelism: ¶llelism, Completions: &completions, Template: v1.PodTemplateSpec{