Skip to content

Commit

Permalink
use runner pod image env
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwit committed Feb 15, 2022
1 parent 713bce0 commit 1d8cd41
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion controllers/terraform_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1665,12 +1665,21 @@ func (r *TerraformReconciler) reconcileRunnerPod(ctx context.Context, terraform

}

func getRunnerPodImage() string {
runnerPodImage := os.Getenv("RUNNER_POD_IMAGE")
if runnerPodImage == "" {
runnerPodImage = "ghcr.io/weaveworks/tf-runner:latest"
}
return runnerPodImage
}

func runnerPodSpec() corev1.PodSpec {

return corev1.PodSpec{
Containers: []corev1.Container{
{
Name: "tf-runner",
Image: "ghcr.io/weaveworks/tf-runner:latest",
Image: getRunnerPodImage(),
Ports: []corev1.ContainerPort{
{
Name: "grpc",
Expand Down

0 comments on commit 1d8cd41

Please sign in to comment.