feat: Pod 목록·토폴로지 API 전체 namespace 조회 지원 (closes #51)#52
Merged
Conversation
- GET /api/pods: namespace 미지정 시 getAllPods()로 전체 namespace 조회
- GET /api/topology: namespace 미지정 시 전체 Pod 반환, namespace 응답 "all"
- GET /api/pods/{podName}/events: namespace optional 처리, 미지정 시 "default" 유지
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
closes #51
변경 사항
GET /api/pods— namespace 파라미터 optional 처리, 미지정 시 전체 namespace 조회GET /api/topology— 동일 패턴 적용, 전체 Pod 포함 + 응답 namespace 필드"all"반환GET /api/pods/{podName}/events— namespace optional 처리, 미지정 시"default"유지 (하위 호환)작업 내용 상세
문제
PodController의 세 엔드포인트 모두@RequestParam(defaultValue = "default")로 고정되어 있어, 프론트엔드가 파라미터 없이 호출하면 항상defaultnamespace만 반환.boutique namespace의 Online Boutique 쇼핑몰 Pod 11개가 대시보드에 표시되지 않음.
해결
/api/pods,/api/topology:required = false로 변경. namespace 미지정 시 기존KubernetesService.getAllPods()(전체 namespace) 활용./api/pods/{podName}/events: namespace optional로 변경하되, 미지정 시"default"fallback. 프론트가 boutique Pod 클릭 시 namespace를 함께 전달하면 해당 namespace 이벤트 조회 가능. 이상 탐지·티켓·AI 연동 로직은 건드리지 않음.topology 응답 변경
namespace 미지정(전체 조회) 시 응답의
namespace필드가"all"로 반환됨. 특정 namespace 조회 시 기존과 동일.체크리스트
./gradlew build성공 확인 (bootJar -x test 통과){ status, message, timestamp }) 준수