Skip to content

Commit 86684c2

Browse files
committed
make static images configurable
1 parent 51fef18 commit 86684c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/kubernetes-provider/src/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ const UPTIME_MAX_PENDING_ERRORS = Number(process.env.UPTIME_MAX_PENDING_ERRORS |
3737
const POD_EPHEMERAL_STORAGE_SIZE_LIMIT = process.env.POD_EPHEMERAL_STORAGE_SIZE_LIMIT || "10Gi";
3838
const POD_EPHEMERAL_STORAGE_SIZE_REQUEST = process.env.POD_EPHEMERAL_STORAGE_SIZE_REQUEST || "2Gi";
3939

40+
// Image config
4041
const PRE_PULL_DISABLED = process.env.PRE_PULL_DISABLED === "true";
4142
const ADDITIONAL_PULL_SECRETS = process.env.ADDITIONAL_PULL_SECRETS;
43+
const PAUSE_IMAGE = process.env.PAUSE_IMAGE || "registry.k8s.io/pause:3.9";
44+
const BUSYBOX_IMAGE = process.env.BUSYBOX_IMAGE || "registry.digitalocean.com/trigger/busybox";
4245

4346
const logger = new SimpleLogger(`[${NODE_NAME}]`);
4447
logger.log(`running in ${RUNTIME_ENV} mode`);
@@ -237,7 +240,7 @@ class KubernetesTaskOperations implements TaskOperations {
237240
},
238241
{
239242
name: "populate-taskinfo",
240-
image: "registry.digitalocean.com/trigger/busybox",
243+
image: BUSYBOX_IMAGE,
241244
imagePullPolicy: "IfNotPresent",
242245
command: ["/bin/sh", "-c"],
243246
args: ["printenv COORDINATOR_HOST | tee /etc/taskinfo/coordinator-host"],
@@ -373,7 +376,7 @@ class KubernetesTaskOperations implements TaskOperations {
373376
containers: [
374377
{
375378
name: "pause",
376-
image: "registry.k8s.io/pause:3.9",
379+
image: PAUSE_IMAGE,
377380
resources: {
378381
limits: {
379382
cpu: "1m",

0 commit comments

Comments
 (0)