Skip to content

Commit 5706ab6

Browse files
committed
use GroupSnapshotDeleteError type for event
use GroupSnapshotDeleteError as event type for event incase if there is any failure in delete operation. Signed-off-by: Madhu Rajanna <[email protected]>
1 parent 0fe3abb commit 5706ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sidecar-controller/groupsnapshot_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func (ctrl *csiSnapshotSideCarController) deleteCSIGroupSnapshotOperation(groupS
234234

235235
snapshotterCredentials, err := ctrl.GetCredentialsFromAnnotationForGroupSnapshot(groupSnapshotContent)
236236
if err != nil {
237-
ctrl.eventRecorder.Event(groupSnapshotContent, v1.EventTypeWarning, "SnapshotDeleteError", "Failed to get snapshot credentials")
237+
ctrl.eventRecorder.Event(groupSnapshotContent, v1.EventTypeWarning, "GroupSnapshotDeleteError", "Failed to get snapshot credentials")
238238
return fmt.Errorf("failed to get input parameters to delete group snapshot for group snapshot content %s: %q", groupSnapshotContent.Name, err)
239239
}
240240

0 commit comments

Comments
 (0)