diff --git a/controllers/configurationpolicy_utils.go b/controllers/configurationpolicy_utils.go index 04d0e04d..e9d42f90 100644 --- a/controllers/configurationpolicy_utils.go +++ b/controllers/configurationpolicy_utils.go @@ -115,6 +115,10 @@ func equalObjWithSort(mergedObj interface{}, oldObj interface{}) (areEqual bool) // this includes the case where oldObj is nil return false case []interface{}: + if len(mergedObj) == 0 && oldObj == nil { + return true + } + if oldObjList, ok := oldObj.([]interface{}); ok { return checkListsMatch(mergedObj, oldObjList) }