Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PVCPruner ¶
type PVCPruner interface {
Prune(ctx context.Context, tc *v1alpha1.TiflowCluster) error
}
func NewPersistentVolumePruner ¶
func NewPersistentVolumePruner(clientSet kubernetes.Interface) PVCPruner
NewPersistentVolumePruner return a new PersistentVolumePruner
type PersistentVolumePruner ¶
type PersistentVolumePruner struct {
ClientSet kubernetes.Interface
}
PersistentVolumePruner provides a Prune() method to remove unused statefulset PVC and their underlying PVs. The underlying PVs SHOULD have their reclaim policy set to delete.
func (*PersistentVolumePruner) Prune ¶
func (p *PersistentVolumePruner) Prune(ctx context.Context, tc *v1alpha1.TiflowCluster) error
Prune locates and removes all PVCs that belong to a given statefulSet but are not in use. The underlying PVs' reclaim policy should be set to delete, other options may result in leaking volumes which cost us money.
Click to show internal directories.
Click to hide internal directories.