Skip to content

Commit

Permalink
log fields in shouldDelete volume
Browse files Browse the repository at this point in the history
  • Loading branch information
amacaskill committed Jul 11, 2023
1 parent cabcbb0 commit 71a4468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,10 @@ func (ctrl *ProvisionController) shouldProvision(ctx context.Context, claim *v1.
// shouldDelete returns whether a volume should have its backing volume
// deleted, i.e. whether a Delete is "desired"
func (ctrl *ProvisionController) shouldDelete(ctx context.Context, volume *v1.PersistentVolume) bool {
klog.V(4).Infof("shouldDelete Volume : %+v", volume)
if deletionGuard, ok := ctrl.provisioner.(DeletionGuard); ok {
if !deletionGuard.ShouldDelete(ctx, volume) {
klog.V(4).Infof("deletionGuard.ShouldDelete is false")
return false
}
}
Expand Down

0 comments on commit 71a4468

Please sign in to comment.