Skip to content

Commit

Permalink
Update readme with behavior table
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolf committed Jul 4, 2020
1 parent 6436dfd commit 095cfbd
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,15 @@ Some common use-case scenarios:
* Delete Pods in Evicted state
* Delete orphaned Pods (Pods without an owner in non-running state)

| flag name | pod | job |
| -------------------------- | ----------------------------------------------------- | ----------------------------- |
| delete-successful-after | delete after specified period if owned by the job | delete after specified period |
| delete-failed-after | delete after specified period if owned by the job | delete after specified period |
| delete-orphaned-pods-after | delete after specified period (any completion status) | N/A |
| delete-evicted-pods-after | delete on discovery | N/A |
| delete-pending-pods-after | delete after specified period | N/A |


## Usage

![screensharing](http://g.recordit.co/aDU52FJIwP.gif)
Expand Down Expand Up @@ -97,6 +106,8 @@ Usage of ./bin/kube-cleanup-operator:
Delete jobs and pods in successful state after X duration (golang duration format, e.g 5m), 0 - never delete (default 15m0s)
-dry-run
Print only, do not delete anything.
-ignore-owned-by-cronjobs
[EXPERIMENTAL] Do not cleanup pods and jobs created by cronjobs
-keep-failures int
Number of hours to keep failed jobs, -1 - forever (default) 0 - never, >0 number of hours (default -1)
-keep-pending int
Expand Down

0 comments on commit 095cfbd

Please sign in to comment.