import React from 'react'; import { AccountTag, CollapsibleSection, timestamp } from '@spinnaker/core'; import type { IKubernetesLoadBalancerDetailsSectionProps } from './IKubernetesLoadBalancerDetailsSectionProps'; export function LoadBalancerInformationSection({ loadBalancer }: IKubernetesLoadBalancerDetailsSectionProps) { const { manifest } = loadBalancer; const spec = manifest?.manifest?.spec ?? {}; return (
Created
{timestamp(loadBalancer.createdTime)}
Account
Namespace
{loadBalancer.namespace}
Kind
{loadBalancer.kind}
Service Type
{spec.type || '-'}
Sess. Affinity
{spec.sessionAffinity || '-'}
); }