File tree Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const Env = z.object({
35
35
// Optional services
36
36
TRIGGER_WARM_START_URL : z . string ( ) . optional ( ) ,
37
37
TRIGGER_CHECKPOINT_URL : z . string ( ) . optional ( ) ,
38
+ TRIGGER_METADATA_URL : z . string ( ) . optional ( ) ,
38
39
39
40
// Used by the workload manager, e.g docker/k8s
40
41
DOCKER_NETWORK : z . string ( ) . default ( "host" ) ,
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ class ManagedSupervisor {
61
61
workloadApiDomain : env . TRIGGER_WORKLOAD_API_DOMAIN ,
62
62
workloadApiPort : env . TRIGGER_WORKLOAD_API_PORT_EXTERNAL ,
63
63
warmStartUrl : this . warmStartUrl ,
64
+ metadataUrl : env . TRIGGER_METADATA_URL ,
64
65
imagePullSecrets : env . KUBERNETES_IMAGE_PULL_SECRETS ?. split ( "," ) ,
65
66
heartbeatIntervalSeconds : env . RUNNER_HEARTBEAT_INTERVAL_SECONDS ,
66
67
snapshotPollIntervalSeconds : env . RUNNER_SNAPSHOT_POLL_INTERVAL_SECONDS ,
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ export class DockerWorkloadManager implements WorkloadManager {
45
45
runArgs . push ( `--env=TRIGGER_WARM_START_URL=${ this . opts . warmStartUrl } ` ) ;
46
46
}
47
47
48
+ if ( this . opts . metadataUrl ) {
49
+ runArgs . push ( `--env=TRIGGER_METADATA_URL=${ this . opts . metadataUrl } ` ) ;
50
+ }
51
+
48
52
if ( this . opts . heartbeatIntervalSeconds ) {
49
53
runArgs . push (
50
54
`--env=TRIGGER_HEARTBEAT_INTERVAL_SECONDS=${ this . opts . heartbeatIntervalSeconds } `
Original file line number Diff line number Diff line change @@ -134,6 +134,9 @@ export class KubernetesWorkloadManager implements WorkloadManager {
134
134
...( this . opts . warmStartUrl
135
135
? [ { name : "TRIGGER_WARM_START_URL" , value : this . opts . warmStartUrl } ]
136
136
: [ ] ) ,
137
+ ...( this . opts . metadataUrl
138
+ ? [ { name : "TRIGGER_METADATA_URL" , value : this . opts . metadataUrl } ]
139
+ : [ ] ) ,
137
140
...( this . opts . heartbeatIntervalSeconds
138
141
? [
139
142
{
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface WorkloadManagerOptions {
5
5
workloadApiDomain ?: string ; // If unset, will use orchestrator-specific default
6
6
workloadApiPort : number ;
7
7
warmStartUrl ?: string ;
8
+ metadataUrl ?: string ;
8
9
imagePullSecrets ?: string [ ] ;
9
10
heartbeatIntervalSeconds ?: number ;
10
11
snapshotPollIntervalSeconds ?: number ;
You can’t perform that action at this time.
0 commit comments