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 7a7b21e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ 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) {
return false
Expand Down

0 comments on commit 7a7b21e

Please sign in to comment.