Skip to content

refactor: builder.go TLS/ConfigMap concern 추가 분리 (역할분리 2차)#384

Merged
KeiaiLab-PHIL merged 2 commits into
mainfrom
refactor/split-builder-tls-configmap
Jun 30, 2026
Merged

refactor: builder.go TLS/ConfigMap concern 추가 분리 (역할분리 2차)#384
KeiaiLab-PHIL merged 2 commits into
mainfrom
refactor/split-builder-tls-configmap

Conversation

@KeiaiLab-PHIL

Copy link
Copy Markdown
Contributor

요약

builder.go 에서 TLS + ConfigMap 빌더를 응집 파일로 추가 분리 — 순수 재배치(로직/시그니처 변경 0). hpa/backup/policy(#383)에 이어 누적 builder.go 2705 → 1837 LOC (-32%, 6 concern 파일).

  • builder_tls.go (121): PEM merge init + TLS volume/mount/args
  • builder_configmap.go (89): MongoDB/Custom/cfg/shard scripts ConfigMap

공유 const + script helper 는 builder.go 잔류(같은 package). 파일 이동은 goconst package-wide 카운트 불변 → 신규 lint 0.

검증

gofmt 0 / build OK / vet clean / golangci-lint 0 / resources test ok / controller envtest 전체 suite ok

🤖 Generated with Claude Code

KeiaiLab-PHIL and others added 2 commits June 30, 2026 12:30
builder.go(2017→1837 LOC)에서 TLS + ConfigMap 빌더를 응집 파일로 추가 분리
(순수 재배치, 로직/시그니처 변경 0). hpa/backup/policy(1차, #383)에 이어 누적
builder.go 2705→1837 LOC (-32%, 6 concern 파일).

- builder_tls.go      (121 LOC): PEM merge init container + TLS volume/mount/args.
- builder_configmap.go ( 89 LOC): MongoDB/Custom/cfg/shard scripts ConfigMap.

공유 const(MongoTLSMountPath/PEMPath, scriptReadiness 등) + script helper 는
builder.go 잔류(같은 package 참조).

검증: gofmt 0 / go build OK / vet clean / golangci-lint 0 issues / resources test ok /
KUBEBUILDER_ASSETS=… controller envtest 전체 suite ok.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: phil <phil@keiailab.com>
builder_tls.go 분리 후 "tls-server"/"tls-server-pem" 볼륨명 리터럴이 각 3회로
goconst threshold 도달 → 파일-로컬 상수 2개로 통일 (PEM init / server mount 공용).

검증: gofmt 0 / go build OK / vet clean / golangci-lint 0 issues / resources test ok.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: phil <phil@keiailab.com>
@KeiaiLab-PHIL KeiaiLab-PHIL merged commit 7d966c9 into main Jun 30, 2026
10 checks passed
@KeiaiLab-PHIL KeiaiLab-PHIL deleted the refactor/split-builder-tls-configmap branch June 30, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant