Skip to content

Commit 205905d

Browse files
committed
Removed update event handler as it's not required
1 parent e838277 commit 205905d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pkg/csi/service/common/commonco/k8sorchestrator/k8sorchestrator.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,6 @@ func initPVCToSnapshotsMap(ctx context.Context, controllerClusterFlavor cnstypes
20532053
return
20542054
}
20552055

2056-
log.Infof("snapshotAdded: snapshot=%v", snap)
20572056
if snap.Spec.Source.PersistentVolumeClaimName == nil {
20582057
log.Warnf("snapshot is not associated with any PVC. Ignoring it...")
20592058
return
@@ -2071,7 +2070,6 @@ func initPVCToSnapshotsMap(ctx context.Context, controllerClusterFlavor cnstypes
20712070
return
20722071
}
20732072

2074-
log.Infof("snapshotDeleted: snapshot=%v", snap)
20752073
if snap.Spec.Source.PersistentVolumeClaimName == nil {
20762074
log.Warnf("snapshot is not associated with any PVC. Ignoring it...")
20772075
return
@@ -2087,10 +2085,7 @@ func initPVCToSnapshotsMap(ctx context.Context, controllerClusterFlavor cnstypes
20872085
func(obj any) {
20882086
snapshotAdded(obj)
20892087
},
2090-
func(oldObj, newObj any) {
2091-
// TODO: implement or remove as we probably don't need to take any action
2092-
log.Info("snapshotUpdated")
2093-
},
2088+
nil,
20942089
func(obj any) {
20952090
snapshotDeleted(obj)
20962091
})

0 commit comments

Comments
 (0)