Skip to content

Commit

Permalink
remove ttlSecondsAfterFinished from job
Browse files Browse the repository at this point in the history
causes infinite restarts and apply of terraform
  • Loading branch information
mauricio-sardinas authored Jul 16, 2021
1 parent 93babfb commit c15ef4d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions controllers/configuration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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: &parallelism,
Completions: &completions,
Template: v1.PodTemplateSpec{
Expand Down

0 comments on commit c15ef4d

Please sign in to comment.