Periodic GC for volume claims (#7881)

This changeset implements a periodic garbage collection of CSI volumes
with missing allocations. This can happen in a scenario where a node
update fails partially and the allocation updates are written to raft
but the evaluations to GC the volumes are dropped. This feature will
cover this edge case and ensure that upgrades from 0.11.0 and 0.11.1
get any stray claims cleaned up.
This commit is contained in:
Tim Gross
2020-05-11 08:20:50 -04:00
committed by GitHub
parent 62316a45c7
commit 8192aa602e
10 changed files with 362 additions and 73 deletions

View File

@@ -257,6 +257,7 @@
"authoritative_region": "foobar",
"bootstrap_expect": 5,
"csi_plugin_gc_threshold": "12h",
"csi_volume_claim_gc_threshold": "12h",
"data_dir": "/tmp/data",
"deployment_gc_threshold": "12h",
"enabled": true,