Skip to content

Commit

Permalink
change pull policy to PullIfNotPresent
Browse files Browse the repository at this point in the history
reduce the number of pull of images to avoid reaching docker hub limit
  • Loading branch information
mauricio-sardinas authored Jul 16, 2021
1 parent c15ef4d commit a855e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/configuration_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func assembleTerraformJob(name, jobName string, configuration *v1beta1.Configura
InitContainers: []v1.Container{{
Name: "prepare-input-terraform-configurations",
Image: terraformInitContainerImg,
ImagePullPolicy: v1.PullAlways,
ImagePullPolicy: v1.PullIfNotPresent,
Command: []string{
"sh",
"-c",
Expand All @@ -355,7 +355,7 @@ func assembleTerraformJob(name, jobName string, configuration *v1beta1.Configura
Containers: []v1.Container{{
Name: "terraform-executor",
Image: terraformImage,
ImagePullPolicy: v1.PullAlways,
ImagePullPolicy: v1.PullIfNotPresent,
Command: []string{
"bash",
"-c",
Expand Down

0 comments on commit a855e4d

Please sign in to comment.