Skip to content

Commit 9c6c44d

Browse files
committed
format
1 parent 700878d commit 9c6c44d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/dependent/kubernetes/SSABasedGenericKubernetesResourceMatcher.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
/**
1818
* Matches the actual state on the server vs the desired state. Based on the managedFields of SSA.
1919
*
20-
* The ide of algorithm is basically trivial, we convert resources to Map/List composition.
21-
* The actual resource (from the server) is pruned, all the fields which are not mentioed in managedFields
22-
* of the target manager is removed. Some irrelevant fields are also removed from desired. And the
23-
* two resulted Maps are compared for equality. The implementation is a bit nasty since have to deal with
24-
* some specific cases of managedFields format.
20+
* The ide of algorithm is basically trivial, we convert resources to Map/List composition. The
21+
* actual resource (from the server) is pruned, all the fields which are not mentioed in
22+
* managedFields of the target manager is removed. Some irrelevant fields are also removed from
23+
* desired. And the two resulted Maps are compared for equality. The implementation is a bit nasty
24+
* since have to deal with some specific cases of managedFields format.
2525
*
2626
* @param <R> matched resource type
2727
*/
@@ -158,7 +158,8 @@ private static boolean isNestedValue(Object managedFieldValue) {
158158

159159
// list entries referenced by key, or when "k:" prefix is used
160160
private void handleListKeyEntrySet(Map<String, Object> result, Map<String, Object> actualMap,
161-
ObjectMapper objectMapper, String keyInActual, Set<Map.Entry<String, Object>> managedEntrySet) {
161+
ObjectMapper objectMapper, String keyInActual,
162+
Set<Map.Entry<String, Object>> managedEntrySet) {
162163
var valueList = new ArrayList<>();
163164
result.put(keyInActual, valueList);
164165
var actualValueList = (List<Map<String, Object>>) actualMap.get(keyInActual);

0 commit comments

Comments
 (0)