Skip to content

Commit

Permalink
Merge pull request #256 from anoop2811/master
Browse files Browse the repository at this point in the history
fix: Disable istio-proxy injection to the job pods
  • Loading branch information
zzxwill committed Mar 1, 2022
2 parents f1046ae + bf2fec0 commit 97b3f99
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions controllers/configuration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,14 @@ func (meta *TFConfigurationMeta) assembleTerraformJob(executionType TerraformExe
Completions: &completions,
BackoffLimit: &backoffLimit,
Template: v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Annotations: map[string]string{
// This annotation will prevent istio-proxy sidecar injection in the pods
// as having the sidecar would have kept the Job in `Running` state and would
// not transition to `Completed`
"sidecar.istio.io/inject": "false",
},
},
Spec: v1.PodSpec{
// InitContainer will copy Terraform configuration files to working directory and create Terraform
// state file directory in advance
Expand Down

0 comments on commit 97b3f99

Please sign in to comment.