From e5f08fbcc01575a04dcf0e2cfe56e009530f7612 Mon Sep 17 00:00:00 2001 From: yclee Date: Wed, 25 Sep 2024 11:03:33 +0900 Subject: [PATCH] =?UTF-8?q?repository=20=EB=AA=A9=EB=A1=9D=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=EC=8B=9C=20=ED=95=84=ED=84=B0=EB=A7=81=20=EC=9E=91?= =?UTF-8?q?=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oss/repository/nexus/NexusRepositoryService.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java b/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java index 9cd3020..2055e79 100644 --- a/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java +++ b/src/main/java/kr/co/mcmp/service/oss/repository/nexus/NexusRepositoryService.java @@ -7,6 +7,7 @@ import org.springframework.stereotype.Service; import java.util.List; +import java.util.stream.Collectors; @Service @RequiredArgsConstructor @@ -16,9 +17,15 @@ public class NexusRepositoryService implements CommonRepositoryService { @Override public List getRepositoryList() { - return repositoryAdapterService.getRepositoryList(); + return repositoryAdapterService.getRepositoryList().stream() + .filter(t -> "hosted".equals(t.getType()) && + ("docker".equals(t.getFormat()) || + "raw".equals(t.getFormat()) || + "helm".equals(t.getFormat()))) + .collect(Collectors.toList()); } + @Override public CommonRepository.RepositoryDto getRepositoryByName(String name) { return repositoryAdapterService.getRepositoryByName(name);