Skip to content

Commit

Permalink
Update readme table output example
Browse files Browse the repository at this point in the history
  • Loading branch information
KeisukeYamashita committed Dec 6, 2019
1 parent 00ffb0e commit 70a1154
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,21 +208,14 @@ not ok 3 - examples/kubernetes/deployment.yaml - hello-kubernetes must include K
##### TABLE

```console
$ conftest test -o table -p examples/kubernetes/policy examples/kubernetes/deployment.yaml
+---------+-------------------------------------+-----------------------------------------------------------------------------------------+
| RESULT | FILE | MESSAGE |
+---------+-------------------------------------+-----------------------------------------------------------------------------------------+
| success | examples/kubernetes/deployment.yaml | |
| failure | examples/kubernetes/deployment.yaml | hello-kubernetes must include Kubernetes recommended labels: |
| | | https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels |
| | | |
| failure | examples/kubernetes/deployment.yaml | Containers must not run |
| | | as root in Deployment |
| | | hello-kubernetes |
| failure | examples/kubernetes/deployment.yaml | Deployment hello-kubernetes |
| | | must provide app/release |
| | | labels for pod selectors |
+---------+-------------------------------------+-----------------------------------------------------------------------------------------+
$ conftest test -p examples/kubernetes/policy examples/kubernetes/service.yaml -o table
+---------+----------------------------------+--------------------------------+
| RESULT | FILE | MESSAGE |
+---------+----------------------------------+--------------------------------+
| success | examples/kubernetes/service.yaml | |
| warning | examples/kubernetes/service.yaml | Found service hello-kubernetes |
| | | but services are not allowed |
+---------+----------------------------------+--------------------------------+
```

## Examples
Expand Down

0 comments on commit 70a1154

Please sign in to comment.