Skip to content

Commit

Permalink
Add job file to repo
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 5, 2022
1 parent 52cfdd2 commit 4af4df8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ Confidential data, secrets, other environment variables.
```bash
arkade get run-job

curl -SLs https://github.com/openfaas/config-checker/blob/master/main.go -o /tmp/job.yaml
curl -SLs -f https://github.com/alexellis/run-job/blob/master/job.yaml -o /tmp/job.yaml

# Output to file with today's date
run-job \
-f /tmp/job.yaml \
-o $(date '+%Y-%m-%d_%H_%M_%S').txt
--out $(date '+%Y-%m-%d_%H_%M_%S').txt

# Or print to console:
run-job -f /tmp/job.yaml

# run-job will try to run `pwd`/job.yaml, so you can also skip the argument
cd /tmp/
run-job
```

## Run the job and collect the results (with kubectl only)
Expand Down
4 changes: 4 additions & 0 deletions job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: checker
image: ghcr.io/openfaas/config-checker:latest
namespace: openfaas
service_account: openfaas-checker

0 comments on commit 4af4df8

Please sign in to comment.