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 |
3737const POD_EPHEMERAL_STORAGE_SIZE_LIMIT = process . env . POD_EPHEMERAL_STORAGE_SIZE_LIMIT || "10Gi" ;
3838const POD_EPHEMERAL_STORAGE_SIZE_REQUEST = process . env . POD_EPHEMERAL_STORAGE_SIZE_REQUEST || "2Gi" ;
3939
40+ // Image config
4041const PRE_PULL_DISABLED = process . env . PRE_PULL_DISABLED === "true" ;
4142const 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
4346const logger = new SimpleLogger ( `[${ NODE_NAME } ]` ) ;
4447logger . 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" ,
You can’t perform that action at this time.
0 commit comments