fix(drift): COPY k8s/ 進 API image — drift_detector Git state 比對
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
drift_detector 的 GitStateReader 需要讀 k8s/*.yaml 來比對 K8s 實際狀態, 但 API Pod 沒有此目錄導致 k8s_dir_not_found,掃描結果永遠為空。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,8 @@ COPY apps/api/src/ ./src/
|
||||
COPY apps/api/models.json ./models.json
|
||||
# 2026-04-09 ogt: 規則引擎配置 — alert_rule_engine.py 從此檔載入規則
|
||||
COPY apps/api/alert_rules.yaml ./alert_rules.yaml
|
||||
# 2026-04-10 Claude Sonnet 4.6: drift_detector 需要 k8s/ YAML 做 Git state 比對
|
||||
COPY k8s/ ./k8s/
|
||||
|
||||
# Install openssh-client — SSH_COMMAND Playbook 執行路徑需要 ssh binary
|
||||
# (2026-04-09 Claude Sonnet 4.6 Asia/Taipei, Bug #6 修正 — python:3.11-slim 無 openssh-client)
|
||||
|
||||
Reference in New Issue
Block a user