Skip to content

Commit 798a754

Browse files
author
Peng Zhou
committed
fix the bug with update panic
1 parent 6071d04 commit 798a754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/marklogiccluster_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ func markLogicClusterCreateUpdateDeletePredicate() predicate.Predicate {
107107
return true // Reconcile if labels have changed
108108
}
109109
// If annotations and labels are the same, check if the spec has changed
110-
oldObj := e.ObjectOld.(*marklogicv1.MarklogicGroup)
110+
oldObj := e.ObjectOld.(*marklogicv1.MarklogicCluster)
111111
// Check if the spec has changed
112-
newObj := e.ObjectNew.(*marklogicv1.MarklogicGroup)
112+
newObj := e.ObjectNew.(*marklogicv1.MarklogicCluster)
113113
if !reflect.DeepEqual(oldObj.Spec, newObj.Spec) {
114114
return true // Reconcile if spec has changed
115115
}

0 commit comments

Comments
 (0)