All checks were successful
CD Pipeline / build-and-deploy (push) Successful in 9m9s
5b9b36f 部署後 asset_scanner 跑 3 次但 total=0, new=0:
- asset_inventory 仍 0 筆
- Pod 手動 kubectl get pods --all-namespaces -o json 可取 JSON
- 真因: K8sProvider._kubectl_get 把 namespace 參數塞進 '-n $ns',
所以 '--all-namespaces' 變成 '-n --all-namespaces' (kubectl 拒絕)
修復:
- 不走 K8sProvider,直接 asyncio.create_subprocess_exec
- kubectl get pods --all-namespaces -o json
- 30s timeout,rc != 0 拋 RuntimeError 觸發 aol status='failed'
驗證: 部署後 asset_inventory 應在 1 分鐘內開始有 pods 寫入
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>