Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

465 B
Raw Blame
import type { ResourceVMwareMeta } from '@/types/resource';

export const formatVmwareClusterServices = (meta: ResourceVMwareMeta | undefined): string => {
  const parts: string[] = [];
  if (meta?.clusterHaEnabled !== undefined) {
    parts.push(`HA ${meta.clusterHaEnabled ? 'enabled' : 'disabled'}`);
  }
  if (meta?.clusterDrsEnabled !== undefined) {
    parts.push(`DRS ${meta.clusterDrsEnabled ? 'enabled' : 'disabled'}`);
  }
  return parts.join(' · ');
};