Skip to content

Commit

Permalink
Add awesome example (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Tomlinson <jtomlinson@nvidia.com>
  • Loading branch information
jacobtomlinson authored Apr 13, 2022
1 parent 379540a commit 1f81197
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
A little bird to validate your container images.

```console
$ canary validate --file somespec.yaml foo/bar:latest
Validating foo/bar:latest against somespec
📦 Required packages are installed [true]
🤖 Expected services are running [true]
🎉 Your container is awesome [true]
$ canary validate --file examples/awesome.yaml your/container:latest
Validating your/container:latest against awesome
📦 Required packages are installed [passed]
🤖 Expected services are running [passed]
🎉 Your container is awesome [passed]
validation passed
```

Expand Down
35 changes: 35 additions & 0 deletions examples/awesome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: container-canary.nvidia.com/v1
kind: Validator
name: awesome
description: A dummy example to show all containers are awesome
command:
- "sleep"
- "30"
checks:
- name: packages
description: 📦 Required packages are installed
probe:
exec:
command:
- /bin/sh
- -c
- "true"
initialDelaySeconds: 1
- name: services
description: 🤖 Expected services are running
probe:
exec:
command:
- /bin/sh
- -c
- "true"
initialDelaySeconds: 2
- name: awesome
description: 🎉 Your container is awesome
probe:
exec:
command:
- /bin/sh
- -c
- "true"
initialDelaySeconds: 3

0 comments on commit 1f81197

Please sign in to comment.