Skip to content

Commit

Permalink
README.md: Add example for Kubernetes provider
Browse files Browse the repository at this point in the history
  • Loading branch information
refeed authored and Akshat0694 committed Jul 27, 2023
1 parent 5761886 commit 1fd73ed
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,36 @@ optional arguments:
"eval_expression": "aws_elbs_have_direct_references_to_security_group"
}
```

5. Kubernetes (using Kubernetes provider)
- Make sure that all pods have a liveness probe defined

```json
{
"meta": {
"version": "v1",
"required_provider": "stackguardian/kubernetes"
},
"evaluators": [
{
"id": "kinds_have_null_liveness_probe",
"provider_args": {
"operation_type": "attribute",
"kubernetes_kind": "Pod",
"attribute_path": "spec.containers.*.livenessProbe"
},
"condition": {
"type": "Contains",
"value": null,
"error_tolerance": 2
}
}
],
"eval_expression": "!kinds_have_null_liveness_probe"
}
```


<!-- ## Local Development Environment
- [Python 3.6 or higher](https://www.python.org/downloads/) is required.
Expand Down

0 comments on commit 1fd73ed

Please sign in to comment.