func()

in controllers/seataserver_controller.go [332:344]


func (r *SeataServerReconciler) deletePVC(ctx context.Context, pvcItem apiv1.PersistentVolumeClaim) {
	pvcDelete := &apiv1.PersistentVolumeClaim{
		ObjectMeta: metav1.ObjectMeta{
			Name:      pvcItem.Name,
			Namespace: pvcItem.Namespace,
		},
	}
	r.Log.Info(fmt.Sprintf("Deleting PVC with name %s", pvcItem.Name))
	err := r.Client.Delete(ctx, pvcDelete)
	if err != nil {
		r.Log.Error(err, fmt.Sprintf("Error deleting PVC with name %s", pvcDelete))
	}
}