Skip to content

Commit 25db06b

Browse files
authored
default cron job to use gen2 execution env (#1059)
Signed-off-by: Kenny Leung <[email protected]>
1 parent 58a60d7 commit 25db06b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/cron/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ No modules.
212212
| <a name="input_enable_otel_sidecar"></a> [enable\_otel\_sidecar](#input\_enable\_otel\_sidecar) | Enable otel sidecar for metrics | `bool` | `true` | no |
213213
| <a name="input_env"></a> [env](#input\_env) | A map of custom environment variables (e.g. key=value) | `map` | `{}` | no |
214214
| <a name="input_exec"></a> [exec](#input\_exec) | Whether to execute job on modify. | `bool` | `false` | no |
215-
| <a name="input_execution_environment"></a> [execution\_environment](#input\_execution\_environment) | The execution environment to use for the job. | `string` | `""` | no |
215+
| <a name="input_execution_environment"></a> [execution\_environment](#input\_execution\_environment) | The execution environment to use for the job. | `string` | `"EXECUTION_ENVIRONMENT_GEN2"` | no |
216216
| <a name="input_importpath"></a> [importpath](#input\_importpath) | The import path that contains the cron application. Leave empty to run the unmodified base image as the application: for example, when running an `apko`-built image. This works by skipping the `ko` build and just use the base image directly in the cron job. A digest must be specified in this case. | `string` | `""` | no |
217217
| <a name="input_invokers"></a> [invokers](#input\_invokers) | List of iam members invoker perimssions to invoke the job. | `list(string)` | `[]` | no |
218218
| <a name="input_ko_build_env"></a> [ko\_build\_env](#input\_ko\_build\_env) | A list of custom environment variables to pass to the ko build. | `list(string)` | `[]` | no |

modules/cron/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ variable "secret_env" {
6161
}
6262

6363
variable "execution_environment" {
64-
default = ""
64+
default = "EXECUTION_ENVIRONMENT_GEN2"
6565
type = string
6666
description = "The execution environment to use for the job."
6767
}

0 commit comments

Comments
 (0)