Skip to content

Commit

Permalink
final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidikcode committed Oct 24, 2024
1 parent 5c39eb2 commit 59525f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public static Object loadAndSubmitResource(Reader content) throws Exception {
Set<Discovery.APIResource> resources = discovery.findAll();
Optional<Discovery.APIResource> apiResource = resources.stream()
.filter(r -> r.getKind().equalsIgnoreCase(kind)
&& r.getVersions().stream().anyMatch(v -> v.equalsIgnoreCase(apiVersion)))
&& r.getVersions().stream().anyMatch(v -> v.equalsIgnoreCase(apiVersion))
&& (r.getGroup() == null || r.getGroup().equalsIgnoreCase((String) yamlMap.get("group"))))
.findFirst();

// Check if the resource kind was found
Expand Down

0 comments on commit 59525f2

Please sign in to comment.