停用 CICD 舊叢集副作用
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
OoO
2026-05-13 19:19:15 +08:00
parent c5d077ff77
commit bd6310365e
7 changed files with 134 additions and 169 deletions

View File

@@ -700,7 +700,7 @@
<div class="issue-title">${escapeHtml(issue.message)}</div>
<div class="issue-detail">
${issue.type === 'job' ? `<span class="badge bg-secondary me-1">${issue.stage}</span>` : ''}
${issue.type === 'pod' ? `<span class="badge bg-info me-1">${issue.environment?.toUpperCase()}</span>` : ''}
${issue.type === 'runtime' ? `<span class="badge bg-info me-1">${issue.environment?.toUpperCase()}</span>` : ''}
${issue.error ? `<br><code>${escapeHtml(issue.error.substring(0, 100))}</code>` : ''}
</div>
${issue.fix_suggestion ? `<div class="issue-suggestion">💡 ${escapeHtml(issue.fix_suggestion)}</div>` : ''}
@@ -925,14 +925,14 @@
<div class="env-error">
<div class="env-error-title">❌ 連線錯誤</div>
<div class="env-error-detail">${escapeHtml(env.error)}</div>
<button class="btn-fix mt-2" onclick="triggerAutoFix('restart_pods', '${envId}')">
<i class="bi bi-arrow-clockwise me-1"></i>重啟服務
<button class="btn-fix mt-2" onclick="triggerAutoFix('diagnose', '${envId}')">
<i class="bi bi-search me-1"></i>診斷服務
</button>
</div>
` : ''}
<div class="env-details mt-2">
<strong class="d-block mb-2">Pods 狀態:</strong>
<strong class="d-block mb-2">Runtime 狀態:</strong>
${renderPods(env.pods, envId)}
</div>
</div>
@@ -943,10 +943,10 @@
container.innerHTML = html;
}
// 渲染 Pods 狀態
// 渲染 runtime 狀態
function renderPods(pods, envId) {
if (!pods || pods.length === 0) {
return '<p class="text-muted small mb-0">無法取得 Pod 資訊</p>';
return '<p class="text-muted small mb-0">Docker Compose runtime舊叢集資訊不適用</p>';
}
return pods.map(pod => `
@@ -1089,7 +1089,7 @@
return;
}
if (!confirm(`確定要對 ${env.toUpperCase()} 執行完整修復嗎?\n重啟 Registry 和所有 Pod`)) return;
if (!confirm(`確定要對 ${env.toUpperCase()} 執行完整修復嗎?\n重啟 Registry 並執行 runtime 診斷,不會重啟舊叢集`)) return;
showNotification('執行中', '正在執行完整修復...');