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

Add autofix to readme #81

Merged
merged 1 commit into from
Jan 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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