import { Badge } from '@@/Badge'; import { Tooltip } from '@@/Tip/Tooltip'; import { ExternalLink } from '@@/ExternalLink'; import { ContainerRowData } from '../types'; import { columnHelper } from './helper'; export const name = columnHelper.accessor('name', { header: 'Name', id: 'name', cell: ({ row: { original: container } }) => (
{container.name}
), }); function ContainerTypeBadge({ container }: { container: ContainerRowData }) { if (container.isSidecar) { return ( Sidecar Sidecar containers {' '} run continuously alongside the main application, starting before other containers. } /> ); } if (container.isInit) { return ( Init Init containers {' '} run and complete before the main application containers start. } /> ); } return null; }