Introduce Comparator interface (#88016)
* Introduce Comparator interface * Add compare implementation everywhere * Add comment explaining what Compare should do * Lint
This commit is contained in:
@@ -184,3 +184,9 @@ func SelectableScopeNodeFields(obj *scope.ScopeNode) fields.Set {
|
||||
"spec.parentName": parentName,
|
||||
})
|
||||
}
|
||||
|
||||
// Compare asserts on the equality of objects returned from both stores (object storage and legacy storage)
|
||||
func (s *storage) Compare(storageObj, legacyObj runtime.Object) bool {
|
||||
//TODO: define the comparison logic between a scope returned by the storage and a scope returned by the legacy storage
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user