Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Jun 10, 2024
1 parent 0d61c69 commit ed49e28
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions docs/docs/api-reference/starlark-reference/ready-condition.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,26 +87,20 @@ def run(plan):
# we define the recipe first
exec_recipe = ExecRecipe(
command = ["echo '{"key":"Hi}'],
extract = {
"value": "fromjson | .key,
}
)

ready_conditions_config = ReadyCondition(
recipe = exec_recipe,
# note how the possible fields are based on the result of executing the ExecRecipe - in this case, .extract
field = "extract.value",
assertion = "==",
target_value = "Hi",
field = "output"
assertion = "!=",
target_value = "",
interval = "10s",
timeout = "200s",
)

service_config = ServiceConfig(
image = "mendhak/http-https-echo:26",
ports = {
"http-port": PortSpec(number = 8080, transport_protocol = "TCP")
},
image = "ubuntu",
ready_conditions= ready_conditions_config,
)

Expand Down

0 comments on commit ed49e28

Please sign in to comment.