-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(containers): helm output (#223)
Introduce an experimental parameter `provider` in `wing.toml` to allow specifying the backend for containers. Also - fix how readiness checks are implemented.
- Loading branch information
Showing
20 changed files
with
908 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
bring "./workload.w" as containers; | ||
bring expect; | ||
bring http; | ||
|
||
let message = "hello, wing change!!"; | ||
|
||
let hello = new containers.Workload( | ||
name: "hello", | ||
image: "paulbouwer/hello-kubernetes:1", | ||
port: 8080, | ||
readiness: "/", | ||
replicas: 2, | ||
env: { | ||
"MESSAGE" => message, | ||
}, | ||
public: true, | ||
) as "hello"; | ||
|
||
|
||
let httpGet = inflight (url: str?): str => { | ||
if let url = url { | ||
return http.get(url).body; | ||
} | ||
|
||
throw "no body"; | ||
}; | ||
|
||
test "access public url" { | ||
let helloBody = httpGet(hello.publicUrl); | ||
log(helloBody); | ||
assert(helloBody.contains(message)); | ||
} |
Oops, something went wrong.