influxdata / influxdata-operator

A k8s operator for InfluxDB
MIT License
76 stars 32 forks source link

[WIP] Delete backup folder content to avoid PV overflow #8

Open kokoska69 opened 5 years ago

kokoska69 commented 5 years ago

I would like to reclaim space on PV after backing up to GCS bucket. Tried code below, but ended up with error 126 when issuing rm command. Is there a way to delete contents of backup folder after backing up? Or do I need to set some permissions to allow that code to run well?