docs: fix tags
This commit is contained in:
parent
0996390183
commit
94e26ccb5c
5
Makefile
5
Makefile
|
@ -131,7 +131,7 @@ run-rules: ## validate the rules directory
|
|||
--config-name config-stderr.yml \
|
||||
--rules $(ROOT_PATH)/rules/salty-dog.yml \
|
||||
--source $${file} \
|
||||
--tag important > /dev/null || exit 1; \
|
||||
--tag salty-dog > /dev/null || exit 1; \
|
||||
done
|
||||
|
||||
run-stream: ## validate stdin and write it to stdout, errors to stderr
|
||||
|
@ -142,5 +142,4 @@ run-stream: ## validate stdin and write it to stdout, errors to stderr
|
|||
--format yaml \
|
||||
--rules $(ROOT_PATH)/rules/kubernetes.yml \
|
||||
--source - \
|
||||
--tag important \
|
||||
--tag optional
|
||||
--tag kubernetes
|
10
README.md
10
README.md
|
@ -45,7 +45,7 @@ To download, validate, and apply a Kubernetes resource:
|
|||
salty-dog \
|
||||
--rules rules/kubernetes.yml \
|
||||
--source - \
|
||||
--tag important | \
|
||||
--tag kubernetes | \
|
||||
kubectl apply --dry-run -f -
|
||||
|
||||
...
|
||||
|
@ -164,14 +164,14 @@ document will be printed to `--dest`.
|
|||
```shell
|
||||
> cat examples/kubernetes-resources-pass.yml | salty-dog \
|
||||
--rules rules/kubernetes.yml \
|
||||
--tag important
|
||||
--tag kubernetes
|
||||
|
||||
...
|
||||
[2019-06-15T23:53:34.223Z] INFO: salty-dog/19839 on cerberus: all rules passed
|
||||
|
||||
> cat examples/kubernetes-resources-fail.yml | salty-dog \
|
||||
--rules rules/kubernetes.yml \
|
||||
--tag important
|
||||
--tag kubernetes
|
||||
|
||||
...
|
||||
[2019-06-15T23:56:04.764Z] ERROR: salty-dog/22211 on cerberus: some rules failed (errors=1)
|
||||
|
@ -183,7 +183,7 @@ The `--source` and `--dest` default to stdin and stdout, respectively, but a pat
|
|||
```shell
|
||||
> salty-dog \
|
||||
--rules rules/kubernetes.yml \
|
||||
--tag important \
|
||||
--tag kubernetes \
|
||||
--source examples/kubernetes-resources-pass.yml \
|
||||
--dest /tmp/kubernetes-resource.yml
|
||||
|
||||
|
@ -215,7 +215,7 @@ is documented by Ajv.
|
|||
```shell
|
||||
> salty-dog \
|
||||
--rules rules/kubernetes.yml \
|
||||
--tag important \
|
||||
--tag kubernetes \
|
||||
--mode list
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue