mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 08:33:49 +02:00
Delete persistent volumes on deletion of the cluster.
This commit is contained in:
committed by
Murat Kabilov
parent
caa0eab19b
commit
033c28f03a
@@ -258,6 +258,10 @@ func (c *Cluster) Delete() error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Can't delete pods: %s", err)
|
||||
}
|
||||
err = c.deletePersistenVolumeClaims()
|
||||
if err != nil {
|
||||
return fmt.Errorf("Can't delete PersistentVolumeClains: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user