Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 514 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 514 Bytes

Prune stale OpenShift resources in OpenStack

List resources older than a threshold.

Ignores resources tagged with: shiftstack-prune=keep.

Use

Dry run:

export OS_CLOUD=<clouds.yaml entry>
./prune

Actual run:

export OS_CLOUD=<clouds.yaml entry>
./prune --no-dry-run

Configure the resoruce TTL with --resource-ttl=<duration> where <duration> is expressed as a Go duration. For example:

export OS_CLOUD=<clouds.yaml entry>
./prune --no-dry-run --resource-ttl=5h