Add env vars inside http.#Wait package to enable env dependency hacks with the package until a cleaner solution is found
Signed-off-by: guillaume <guillaume.derouville@gmail.com>
This commit is contained in:
parent
bf022b3f1d
commit
7de77520a5
@ -103,6 +103,9 @@ import (
|
|||||||
// Time until timeout (sec.)
|
// Time until timeout (sec.)
|
||||||
timeout: int | *30
|
timeout: int | *30
|
||||||
|
|
||||||
|
// Env variables
|
||||||
|
env: [string]: string
|
||||||
|
|
||||||
#up: [
|
#up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
from: alpine.#Image & {
|
from: alpine.#Image & {
|
||||||
@ -141,12 +144,15 @@ import (
|
|||||||
"""#,
|
"""#,
|
||||||
]
|
]
|
||||||
always: true
|
always: true
|
||||||
env: {
|
"env": {
|
||||||
HEALTH_URL: url
|
HEALTH_URL: url
|
||||||
INTERVAL: "\(interval)"
|
INTERVAL: "\(interval)"
|
||||||
NB_RETRIES: "\(retries)"
|
NB_RETRIES: "\(retries)"
|
||||||
START_PERIOD: "\(startPeriod)"
|
START_PERIOD: "\(startPeriod)"
|
||||||
TIMEOUT: "\(timeout)"
|
TIMEOUT: "\(timeout)"
|
||||||
|
for k, v in env {
|
||||||
|
"\(k)": v
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user