Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Add autofix to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
klautcomputing authored and Felix Glaser committed Jan 10, 2018
1 parent 05f86ec commit 7aaca31
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ privileged, ... You get the gist of it and more on that later. Just know:

- [Installation](#installation)
- [General instructions](#general)
- [Autofix](#autofix)
- [Audits](#audits)
- [Override Labels](#labels)
- [Contribute!](#contribute)
Expand Down Expand Up @@ -71,6 +72,16 @@ I need help! Run `kubeaudit help` every audit has its own help so you can run
Last but not least before we look at the audits: `kubeaudit -a/--allPods`
audits against pods in all the phases (default Running Phase)

<a name="autofix" />

## Autofix

As humans we are lazy and `kubeaudit` knows that so it comes with the functionality to `autofix` workload manifests. Point it at your workload manifests and it will automagically fix everything so that manifests are as secure as it gets.

`kubeaudit autofix -f path/to/manifest.yml`

The manifest might end up a little too secure for the work it is supposed to do. If that is the case check out [labels](#labels) to opt out of certain checks.

<a name="audits" />

## Audits
Expand Down

0 comments on commit 7aaca31

Please sign in to comment.