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 6a9f78e commit 5c39eb2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public static Object loadAndSubmitResource(Reader content) throws Exception {
// Finding the resource in the discovery class
Set<Discovery.APIResource> resources = discovery.findAll();
Optional<Discovery.APIResource> apiResource = resources.stream()
.filter(r -> r.getKind().equalsIgnoreCase(kind))
.filter(r -> r.getKind().equalsIgnoreCase(kind)
&& r.getVersions().stream().anyMatch(v -> v.equalsIgnoreCase(apiVersion)))
.findFirst();

// Check if the resource kind was found
Expand Down

0 comments on commit 5c39eb2

Please sign in to comment.