Skip to content

Commit 0531ead

Browse files
committed
feat: add logs for volume attachment cleanup
1 parent 3205f31 commit 0531ead

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: internal/node/utils.go

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func CleanUpVolumeAttachmentsForNode(ctx context.Context, kubeClient clientset.I
7171
if volumeAttachment.Spec.NodeName != nodeName {
7272
continue
7373
}
74+
klog.Infof("Deleting volume attachment %s for node %s", volumeAttachment.Name, nodeName)
7475
deleteErr := kubeClient.StorageV1().VolumeAttachments().Delete(ctx, volumeAttachment.Name, metav1.DeleteOptions{})
7576
if deleteErr != nil {
7677
if errors.IsNotFound(deleteErr) {

0 commit comments

Comments
 (0)