Skip to content

Commit

Permalink
main.go: enable cleanup of old PVCs
Browse files Browse the repository at this point in the history
This commit enables the controller to clean up the PVCs of Thanos
Receive Pods that are watched by it. Whenever a receiver is deleted, the
controller will spawn a helper container that mounts all PVCs specified
by the StatefulSet for that container and `rm -rf`s the contents of them.

Tested on a kind cluster. A follow up PR will add E2E tests and verify
this functionality.
  • Loading branch information
squat committed Jan 17, 2020
1 parent 18212ad commit 46ff0c8
Showing 1 changed file with 207 additions and 32 deletions.
Loading

0 comments on commit 46ff0c8

Please sign in to comment.