Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add awesome example #24

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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