{p.name}
{p.role}
{/* Servers cell */}
{(p.servers || []).slice(0, 6).map((s) => (
{s.hostname || s.private_ip_address}
{s.role}
{s.status && (
)}
))}
{serverCount === 0 && (
No servers
)}
{serverCount > 6 && (
+{serverCount - 6} more
)}
{/* Annotations */}
{(p.annotations || []).slice(0, 6).map((a: any) => (
{a.key}:{a.value}
))}
{(p.annotations || []).length === 0 && (
No annotations
)}
{(p.annotations || []).length > 6 && (
+{(p.annotations || []).length - 6} more
)}
{/* Labels */}
{(p.labels || []).slice(0, 6).map((l: any) => (
{l.key}:{l.value}
))}
{(p.labels || []).length === 0 && (
No labels
)}
{(p.labels || []).length > 6 && (
+{(p.labels || []).length - 6} more
)}
{/* Taints */}
{(p.taints || []).slice(0, 6).map((t: any) => (
{t.key}:{t.value}
{t.effect ? ({t.effect}) : null}
))}
{(p.taints || []).length === 0 && (
No taints
)}
{(p.taints || []).length > 6 && (
+{(p.taints || []).length - 6} more
)}
{
setEditing(p)
setUpdateOpen(true)
}}
>
Edit
{
setDeleting(p)
setDeleteOpen(true)
}}
>
Delete
)
})}
{filtered.length === 0 && (