Merge pull request #1215 from grouville/extend/http.#Wait

Add env vars inside http.#Wait package to enable env dependency hacks
This commit is contained in:
Sam Alba 2021-12-16 17:16:15 -08:00 committed by GitHub
commit 19322a7cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,9 @@ import (
// Time until timeout (sec.)
timeout: int | *30
// Env variables
env: [string]: string
#up: [
op.#Load & {
from: alpine.#Image & {
@ -141,12 +144,15 @@ import (
"""#,
]
always: true
env: {
"env": {
HEALTH_URL: url
INTERVAL: "\(interval)"
NB_RETRIES: "\(retries)"
START_PERIOD: "\(startPeriod)"
TIMEOUT: "\(timeout)"
for k, v in env {
"\(k)": v
}
}
},
]