You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
NS 마이그레이션(개발 → 운영): 새 화면 /ns-migration 에서 소스 클러스터·네임스페이스의 리소스를 타깃(운영) 클러스터로 옮긴다. 기본 종류(Namespace·ServiceAccount·Role·RoleBinding·ConfigMap·ResourceQuota·LimitRange)에 워크로드(Deployment·StatefulSet·DaemonSet·CronJob·Service·Ingress·PVC 정의·HPA·PDB·NetworkPolicy)를 골라 더하고, Secret 은 명시 선택 시만 포함한다(SA 토큰·Helm release Secret 은 항상 제외, 로그·미리보기에서는 값 마스킹). 치환 규칙(이미지 레지스트리·문자열·replicas·라벨)과 NS 이름 변경(RoleBinding subject·내부 DNS 자동 반영)을 화면에서 정하고 프로필로 저장한다. 미리보기는 리소스별 생성/갱신/동일과 diff, 서버 dry-run 결과를, 운영 적용은 server-side apply 를 단계별 실시간 로그(로그 보기 토글)로 보여준다(타깃 클러스터 이름 입력 확인, 타깃 전용 리소스는 지우지 않음). YAML 다운로드로 GitOps 반영용 다중 문서 번들도 받는다. Backend: routers/ns_migration.py, services/ns_migration/{transform,engine}.py(DynamicClient), Celery run_ns_migration, 모델 NsMigrationProfile·NsMigrationRun(로그성 365일), 감사 k8s.ns_migration.*.
Fixed
실행 단계 상태가 저장되지 않던 문제: 실행 로그 헬퍼(RunLogger.step)가 불러온 단계 dict 를 제자리에서 고쳐 JSONB 변경이 감지되지 않았다. 효율화 적용/롤백 실행의 단계 타임라인이 "실행 중"에 머무를 수 있었다 — 사본으로 고쳐 커밋되게 했다.