Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class PodController implements PodApi {
@GetMapping
public List<String> getPods() {
return client.pods()
.inNamespace("default")
.inNamespace("ailab-infra")
.list()
Comment on lines 28 to 30
.getItems()
.stream()
Expand All @@ -38,7 +38,7 @@ public List<String> getPods() {
@GetMapping("/{podName}")
public PodResponseDTO getPodDetail(@PathVariable String podName) {
Pod pod = client.pods()
.inNamespace("default")
.inNamespace("ailab-infra")
.withName(podName)
.get();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public record ApproveRequestDTO(
@NotNull(message = "리소스 그룹 ID는 필수로 입력해야 합니다.")
Integer resourceGroupId,

@Schema(description = "할당할 볼륨 크기 (GiB)", example = "20")
@NotNull(message = "볼륨 크기는 필수로 입력해야 합니다.")
@Schema(description = "할당할 볼륨 크기 (GiB, null이면 신청 시 값 유지)", example = "20")
@Positive(message = "볼륨 크기는 양수여야 합니다.")
Long volumeSizeGiB,
Comment on lines +22 to 24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ public void revertToPending() {
public void approve(ContainerImage image, ResourceGroup resourceGroup, Long volumeSizeGiB, String adminComment) {
this.containerImage = image;
this.resourceGroup = resourceGroup;
this.volumeSizeGiB = volumeSizeGiB;
if (volumeSizeGiB != null) {
this.volumeSizeGiB = volumeSizeGiB;
}
Comment on lines 145 to +150
this.status = Status.FULFILLED;
this.approvedAt = LocalDateTime.now();

Expand Down