File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
apps/kubernetes-provider/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ const UPTIME_MAX_PENDING_ERRORS = Number(process.env.UPTIME_MAX_PENDING_ERRORS |
37
37
const POD_EPHEMERAL_STORAGE_SIZE_LIMIT = process . env . POD_EPHEMERAL_STORAGE_SIZE_LIMIT || "10Gi" ;
38
38
const POD_EPHEMERAL_STORAGE_SIZE_REQUEST = process . env . POD_EPHEMERAL_STORAGE_SIZE_REQUEST || "2Gi" ;
39
39
40
+ // Image config
40
41
const PRE_PULL_DISABLED = process . env . PRE_PULL_DISABLED === "true" ;
41
42
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" ;
42
45
43
46
const logger = new SimpleLogger ( `[${ NODE_NAME } ]` ) ;
44
47
logger . log ( `running in ${ RUNTIME_ENV } mode` ) ;
@@ -237,7 +240,7 @@ class KubernetesTaskOperations implements TaskOperations {
237
240
} ,
238
241
{
239
242
name : "populate-taskinfo" ,
240
- image : "registry.digitalocean.com/trigger/busybox" ,
243
+ image : BUSYBOX_IMAGE ,
241
244
imagePullPolicy : "IfNotPresent" ,
242
245
command : [ "/bin/sh" , "-c" ] ,
243
246
args : [ "printenv COORDINATOR_HOST | tee /etc/taskinfo/coordinator-host" ] ,
@@ -373,7 +376,7 @@ class KubernetesTaskOperations implements TaskOperations {
373
376
containers : [
374
377
{
375
378
name : "pause" ,
376
- image : "registry.k8s.io/pause:3.9" ,
379
+ image : PAUSE_IMAGE ,
377
380
resources : {
378
381
limits : {
379
382
cpu : "1m" ,
You can’t perform that action at this time.
0 commit comments