diff --git a/jkube-kit/helm/src/main/java/org/eclipse/jkube/kit/resource/helm/HelmService.java b/jkube-kit/helm/src/main/java/org/eclipse/jkube/kit/resource/helm/HelmService.java index 9198293d36..f54dafd389 100644 --- a/jkube-kit/helm/src/main/java/org/eclipse/jkube/kit/resource/helm/HelmService.java +++ b/jkube-kit/helm/src/main/java/org/eclipse/jkube/kit/resource/helm/HelmService.java @@ -465,7 +465,7 @@ private static Object sortValuesYamlRecursive(final Object input) { if (input instanceof Map) { final Map inputMap = (Map) input; final SortedMap result = new TreeMap<>(); - inputMap.entrySet().stream().forEach(entry -> result.put(entry.getKey(), sortValuesYamlRecursive(entry.getValue()))); + inputMap.forEach((key, value) -> result.put(key, sortValuesYamlRecursive(value))); return result; } else { return input;