diff --git a/app/static/index.html b/app/static/index.html index b597ec1..cdefcb1 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1181,78 +1181,6 @@ showNamespaceDetailsSimple(namespaceName); } - // Create detailed HTML for namespace issues - function createNamespaceDetails(namespace) { - let html = ` -
-

📋 ${namespace.namespace} - Detailed Analysis

-
-

Pods: ${Object.keys(namespace.pods || {}).length}

-

Total Issues: ${namespace.total_validations || 0}

-

Severity Breakdown:

- -
-
-

🔍 Pod Analysis

- `; - - // Add details for each pod - Object.values(namespace.pods || {}).forEach(pod => { - html += ` -
-
📦 ${pod.pod_name}
-

Status: ${pod.phase}

-

Node: ${pod.node_name}

-
-
Containers:
- `; - - pod.containers.forEach(container => { - const hasRequests = Object.keys(container.resources?.requests || {}).length > 0; - const hasLimits = Object.keys(container.resources?.limits || {}).length > 0; - - html += ` -
-

${container.name} (${container.image})

-

Requests: ${hasRequests ? JSON.stringify(container.resources.requests) : '❌ Not defined'}

-

Limits: ${hasLimits ? JSON.stringify(container.resources.limits) : '❌ Not defined'}

-
- `; - }); - - html += ` -
-
-
Issues Found:
- `; - - pod.validations.forEach(validation => { - const severityClass = `severity-${validation.severity}`; - html += ` -
-

${validation.rule_name}: ${validation.message}

-

Recommendation: ${validation.recommendation}

-
- `; - }); - - html += ` -
-
- `; - }); - - html += ` -
-
- `; - - return html; - } // Show namespace details in modal function showNamespaceDetailsSimple(namespaceName) { @@ -1336,7 +1264,7 @@ const severityClass = `severity-${validation.severity}`; content += `
-

${validation.rule_name}: ${validation.message}

+

${validation.validation_type}: ${validation.message}

Recommendation: ${validation.recommendation}

`;