From 698af8fd7787de39fb0de2c44b5b08f5efa0ffbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Sun, 5 May 2024 15:02:35 +0200 Subject: [PATCH] Fix Status in some columns --- front/libs/argoproj/custom.ts | 12 +++---- front/libs/cattle/custom.ts | 6 ++-- front/libs/certmanager/custom.ts | 4 +-- front/libs/cilium/custom.ts | 14 ++++---- front/libs/cnpg/custom.ts | 14 ++++---- front/libs/fluxcd/custom.ts | 2 +- front/libs/jaegertracing/custom.ts | 4 +-- front/libs/k8s/custom.ts | 22 ++++++------ front/libs/keda/custom.ts | 10 +++--- front/libs/kubevirt/custom.ts | 56 +++++++++++++++--------------- front/libs/mariadb/custom.ts | 2 +- front/libs/min/custom.ts | 4 +-- front/libs/mongodb/custom.ts | 4 +-- front/libs/monitoring/custom.ts | 16 ++++----- front/libs/namecheap/custom.ts | 2 +- front/libs/opentelemetry/custom.ts | 8 ++--- front/libs/operators/custom.ts | 2 +- front/libs/oracle/custom.ts | 8 ++--- front/libs/tekton/custom.ts | 12 +++---- front/libs/vynil/custom.ts | 4 +-- front/libs/zalando/custom.ts | 2 +- 21 files changed, 104 insertions(+), 104 deletions(-) diff --git a/front/libs/argoproj/custom.ts b/front/libs/argoproj/custom.ts index ca3fbb3..bcf6611 100644 --- a/front/libs/argoproj/custom.ts +++ b/front/libs/argoproj/custom.ts @@ -65,9 +65,9 @@ export const extraAppProjectColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraApplicationColumns:Array = [ - {name: 'SyncStatus', label: `${i18n.global.t('argoproj.SyncStatus')}`, field: row => row.status.sync.status, sortable: true, align: tableColumnAlign.left}, - {name: 'HealthStatus', label: `${i18n.global.t('argoproj.HealthStatus')}`, field: row => row.status.health.status, sortable: true, align: tableColumnAlign.left}, - {name: 'Revision', label: `${i18n.global.t('argoproj.Revision')}`, field: row => row.status.sync.revision, sortable: true, align: tableColumnAlign.left}, + {name: 'SyncStatus', label: `${i18n.global.t('argoproj.SyncStatus')}`, field: row => row.status?.sync.status, sortable: true, align: tableColumnAlign.left}, + {name: 'HealthStatus', label: `${i18n.global.t('argoproj.HealthStatus')}`, field: row => row.status?.health.status, sortable: true, align: tableColumnAlign.left}, + {name: 'Revision', label: `${i18n.global.t('argoproj.Revision')}`, field: row => row.status?.sync.revision, sortable: true, align: tableColumnAlign.left}, ]; export const extraApplicationSetColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -88,9 +88,9 @@ export const extraSensorColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraWorkflowColumns:Array = [ - {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.status.startedAt, sortable: true, align: tableColumnAlign.left}, - {name: 'Message', label: `${i18n.global.t('argoproj.Message')}`, field: row => row.status.message, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.status?.startedAt, sortable: true, align: tableColumnAlign.left}, + {name: 'Message', label: `${i18n.global.t('argoproj.Message')}`, field: row => row.status?.message, sortable: true, align: tableColumnAlign.left}, ]; export const extraWorkflowArtifactGCTaskColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/cattle/custom.ts b/front/libs/cattle/custom.ts index 5748207..6c54417 100644 --- a/front/libs/cattle/custom.ts +++ b/front/libs/cattle/custom.ts @@ -22,7 +22,7 @@ export const colorETCDSnapshotFile = installColor; export const descriptionETCDSnapshotFile = ''; export const shortETCDSnapshotFile = 'ETCDSnapshotFile'; export const extraHelmChartColumns:Array = [ - {name: 'Job', label: `${i18n.global.t('cattle.Job')}`, field: row => row.status.jobName, sortable: true, align: tableColumnAlign.left}, + {name: 'Job', label: `${i18n.global.t('cattle.Job')}`, field: row => row.status?.jobName, sortable: true, align: tableColumnAlign.left}, {name: 'Chart', label: `${i18n.global.t('cattle.Chart')}`, field: row => row.spec.chart, sortable: true, align: tableColumnAlign.left}, {name: 'TargetNamespace', label: `${i18n.global.t('cattle.TargetNamespace')}`, field: row => row.spec.targetNamespace, sortable: true, align: tableColumnAlign.left}, {name: 'Version', label: `${i18n.global.t('cattle.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, @@ -41,8 +41,8 @@ export const extraETCDSnapshotFileColumns:Array = [ {name: 'SnapshotName', label: `${i18n.global.t('cattle.SnapshotName')}`, field: row => row.spec.snapshotName, sortable: true, align: tableColumnAlign.left}, {name: 'Node', label: `${i18n.global.t('cattle.Node')}`, field: row => row.spec.nodeName, sortable: true, align: tableColumnAlign.left}, {name: 'Location', label: `${i18n.global.t('cattle.Location')}`, field: row => row.spec.location, sortable: true, align: tableColumnAlign.left}, - {name: 'Size', label: `${i18n.global.t('cattle.Size')}`, field: row => row.status.size, sortable: true, align: tableColumnAlign.left}, - {name: 'CreationTime', label: `${i18n.global.t('cattle.CreationTime')}`, field: row => row.status.creationTime, sortable: true, align: tableColumnAlign.left}, + {name: 'Size', label: `${i18n.global.t('cattle.Size')}`, field: row => row.status?.size, sortable: true, align: tableColumnAlign.left}, + {name: 'CreationTime', label: `${i18n.global.t('cattle.CreationTime')}`, field: row => row.status?.creationTime, sortable: true, align: tableColumnAlign.left}, ]; export const HelmChartListExcludes = [ { path: 'status/jobName', include: true }, diff --git a/front/libs/certmanager/custom.ts b/front/libs/certmanager/custom.ts index 42970d8..388b447 100644 --- a/front/libs/certmanager/custom.ts +++ b/front/libs/certmanager/custom.ts @@ -32,12 +32,12 @@ export const descriptionIssuer = ''; export const shortIssuer = 'Issuer'; export const extraChallengeColumns:Array = [ {name: 'Domain', label: i18n.global.t('certmanager.Domain'), field: row => row.spec.dnsName, sortable: true, align: tableColumnAlign.left}, - {name: 'Reason', label: i18n.global.t('certmanager.Reason'), field: row => row.status.reason, sortable: true, align: tableColumnAlign.left}, + {name: 'Reason', label: i18n.global.t('certmanager.Reason'), field: row => row.status?.reason, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: i18n.global.t('meta.age'), field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraOrderColumns:Array = [ {name: 'Issuer', label: i18n.global.t('certmanager.Issuer'), field: row => row.spec.issuerRef.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Reason', label: i18n.global.t('certmanager.Reason'), field: row => row.status.reason, sortable: true, align: tableColumnAlign.left}, + {name: 'Reason', label: i18n.global.t('certmanager.Reason'), field: row => row.status?.reason, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: i18n.global.t('meta.age'), field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraCertificateColumns:Array = [ diff --git a/front/libs/cilium/custom.ts b/front/libs/cilium/custom.ts index 0450272..06b097b 100644 --- a/front/libs/cilium/custom.ts +++ b/front/libs/cilium/custom.ts @@ -59,16 +59,16 @@ export const extraCiliumClusterwideNetworkPolicyColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraCiliumEndpointColumns:Array = [ - {name: 'Endpoint ID', label: `${i18n.global.t('cilium.endpointID')}`, field: row => row.status.id, sortable: true, align: tableColumnAlign.left}, - {name: 'Identity ID', label: `${i18n.global.t('cilium.identityID')}`, field: row => row.status.identity.id, sortable: true, align: tableColumnAlign.left}, - {name: 'Ingress Enforcement', label: `${i18n.global.t('cilium.ingressEnforcement')}`, field: row => row.status.policy.ingress.state, sortable: true, align: tableColumnAlign.left}, - {name: 'Egress Enforcement', label: `${i18n.global.t('cilium.egressEnforcement')}`, field: row => row.status.policy.egress.state, sortable: true, align: tableColumnAlign.left}, + {name: 'Endpoint ID', label: `${i18n.global.t('cilium.endpointID')}`, field: row => row.status?.id, sortable: true, align: tableColumnAlign.left}, + {name: 'Identity ID', label: `${i18n.global.t('cilium.identityID')}`, field: row => row.status?.identity.id, sortable: true, align: tableColumnAlign.left}, + {name: 'Ingress Enforcement', label: `${i18n.global.t('cilium.ingressEnforcement')}`, field: row => row.status?.policy.ingress.state, sortable: true, align: tableColumnAlign.left}, + {name: 'Egress Enforcement', label: `${i18n.global.t('cilium.egressEnforcement')}`, field: row => row.status?.policy.egress.state, sortable: true, align: tableColumnAlign.left}, {name: 'Visibility Policy', label: `${i18n.global.t('cilium.visibilityPolicy')}`, field: row => row.status['visibility-policy-status'], sortable: true, align: tableColumnAlign.left}, - {name: 'Endpoint State', label: `${i18n.global.t('cilium.endpointState')}`, field: row => row.status.state, sortable: true, align: tableColumnAlign.left}, + {name: 'Endpoint State', label: `${i18n.global.t('cilium.endpointState')}`, field: row => row.status?.state, sortable: true, align: tableColumnAlign.left}, ]; export const extraCiliumExternalWorkloadColumns:Array = [ - {name: 'ciliumID', label: `${i18n.global.t('cilium.ciliumID')}`, field: row => row.status.id, sortable: true, align: tableColumnAlign.left}, - {name: 'IP', label: `${i18n.global.t('core.ip')}`, field: row => row.status.ip, sortable: true, align: tableColumnAlign.left}, + {name: 'ciliumID', label: `${i18n.global.t('cilium.ciliumID')}`, field: row => row.status?.id, sortable: true, align: tableColumnAlign.left}, + {name: 'IP', label: `${i18n.global.t('core.ip')}`, field: row => row.status?.ip, sortable: true, align: tableColumnAlign.left}, ]; export const extraCiliumIdentityColumns:Array = [ {name: 'Namespace', label: `${i18n.global.t('meta.namespace')}`, field: row => row.metadata.labels['io.kubernetes.pod.namespace'], sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/cnpg/custom.ts b/front/libs/cnpg/custom.ts index 122b808..58959ff 100644 --- a/front/libs/cnpg/custom.ts +++ b/front/libs/cnpg/custom.ts @@ -25,15 +25,15 @@ export const shortScheduledBackup = 'ScheduledBackup'; export const extraBackupColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, {name: 'Cluster', label: `${i18n.global.t('cnpg.Cluster')}`, field: row => row.spec.cluster.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('cnpg.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Error', label: `${i18n.global.t('core.error')}`, field: row => row.status.error, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('cnpg.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Error', label: `${i18n.global.t('core.error')}`, field: row => row.status?.error, sortable: true, align: tableColumnAlign.left}, ]; export const extraClusterColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Instances', label: `${i18n.global.t('cnpg.Instances')}`, field: row => row.status.instances, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.readyInstances, sortable: true, align: tableColumnAlign.left}, - {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Primary', label: `${i18n.global.t('cnpg.Primary')}`, field: row => row.status.currentPrimary, sortable: true, align: tableColumnAlign.left}, + {name: 'Instances', label: `${i18n.global.t('cnpg.Instances')}`, field: row => row.status?.instances, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.readyInstances, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Primary', label: `${i18n.global.t('cnpg.Primary')}`, field: row => row.status?.currentPrimary, sortable: true, align: tableColumnAlign.left}, ]; export const extraPoolerColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, @@ -43,7 +43,7 @@ export const extraPoolerColumns:Array = [ export const extraScheduledBackupColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, {name: 'Cluster', label: `${i18n.global.t('cnpg.Cluster')}`, field: row => row.spec.cluster.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Last Backup', label: `${i18n.global.t('cnpg.lastBackup')}`, field: row => row.status.lastScheduleTime, sortable: true, align: tableColumnAlign.left}, + {name: 'Last Backup', label: `${i18n.global.t('cnpg.lastBackup')}`, field: row => row.status?.lastScheduleTime, sortable: true, align: tableColumnAlign.left}, ]; export const BackupListExcludes = [ { path: 'metadata/creationTimestamp', include: true }, diff --git a/front/libs/fluxcd/custom.ts b/front/libs/fluxcd/custom.ts index 20f080f..04ae49f 100644 --- a/front/libs/fluxcd/custom.ts +++ b/front/libs/fluxcd/custom.ts @@ -105,7 +105,7 @@ export const extraImagePolicyColumns:Array = [ {name: 'LastChange', label: `${i18n.global.t('fluxcd.LastChange')}`, field: row => timeAgo(row.status?.conditions[0].lastTransitionTime), sortable: true, align: tableColumnAlign.left}, ]; export const extraImageRepositoryColumns:Array = [ - {name: 'LastScan', label: `${i18n.global.t('fluxcd.LastScan')}`, field: row => timeAgo(row.status.lastScanResult?.scanTime), sortable: true, align: tableColumnAlign.left}, + {name: 'LastScan', label: `${i18n.global.t('fluxcd.LastScan')}`, field: row => timeAgo(row.status?.lastScanResult?.scanTime), sortable: true, align: tableColumnAlign.left}, {name: 'Tags', label: `${i18n.global.t('fluxcd.Tags')}`, field: row => row.status?.lastScanResult?.tagCount, sortable: true, align: tableColumnAlign.left}, ]; export const extraHelmReleaseColumns:Array = [ diff --git a/front/libs/jaegertracing/custom.ts b/front/libs/jaegertracing/custom.ts index 5fa82ae..341d442 100644 --- a/front/libs/jaegertracing/custom.ts +++ b/front/libs/jaegertracing/custom.ts @@ -11,8 +11,8 @@ export const colorJaeger = systemColor; export const descriptionJaeger = ''; export const shortJaeger = 'Jaeger'; export const extraJaegerColumns:Array = [ - {name: 'Status', label: `${i18n.global.t('jaeger.Status')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Version', label: `${i18n.global.t('core.version')}`, field: row => row.status.version, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('jaeger.Status')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Version', label: `${i18n.global.t('core.version')}`, field: row => row.status?.version, sortable: true, align: tableColumnAlign.left}, {name: 'Strategy', label: `${i18n.global.t('jaeger.Strategy')}`, field: row => row.spec.strategy, sortable: true, align: tableColumnAlign.left}, {name: 'Storage', label: `${i18n.global.t('jaeger.Storage')}`, field: row => row.spec.storage.type, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/k8s/custom.ts b/front/libs/k8s/custom.ts index 5980d28..66d8ceb 100644 --- a/front/libs/k8s/custom.ts +++ b/front/libs/k8s/custom.ts @@ -203,9 +203,9 @@ export const extraNamespaceColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraNodeColumns:Array = [ - {name: 'CPUs', label: `${i18n.global.t('k8s.CPUs')}`, field: row => row.status.capacity.cpu, sortable: true, align: tableColumnAlign.left}, - {name: 'RAM', label: `${i18n.global.t('k8s.RAM')}`, field: row => row.status.capacity.memory, sortable: true, align: tableColumnAlign.left}, - {name: 'Version', label: `${i18n.global.t('core.version')}`, field: row => row.status.nodeInfo.kubeletVersion, sortable: true, align: tableColumnAlign.left}, + {name: 'CPUs', label: `${i18n.global.t('k8s.CPUs')}`, field: row => row.status?.capacity.cpu, sortable: true, align: tableColumnAlign.left}, + {name: 'RAM', label: `${i18n.global.t('k8s.RAM')}`, field: row => row.status?.capacity.memory, sortable: true, align: tableColumnAlign.left}, + {name: 'Version', label: `${i18n.global.t('core.version')}`, field: row => row.status?.nodeInfo.kubeletVersion, sortable: true, align: tableColumnAlign.left}, {name: 'Region', label: `${i18n.global.t('k8s.Region')}`, field: row => row.metadata.labels['topology.kubernetes.io/region'], sortable: true, align: tableColumnAlign.left}, {name: 'Zone', label: `${i18n.global.t('k8s.Zone')}`, field: row => row.metadata.labels['topology.kubernetes.io/zone'], sortable: true, align: tableColumnAlign.left}, // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -244,7 +244,7 @@ export const extraControllerRevisionColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraDaemonSetColumns:Array = [ - {name: 'Replicas', label: `${i18n.global.t('k8s.Replicas')}`, field: row => row.status.numberReady, sortable: true, align: tableColumnAlign.left}, + {name: 'Replicas', label: `${i18n.global.t('k8s.Replicas')}`, field: row => row.status?.numberReady, sortable: true, align: tableColumnAlign.left}, ]; export const extraDeploymentColumns:Array = [ {name: 'Replicas', label: `${i18n.global.t('k8s.Replicas')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, @@ -259,7 +259,7 @@ export const extraHorizontalPodAutoscalerColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraJobColumns:Array = [ - {name: 'Completion', label: `${i18n.global.t('k8s.Completion')}`, field: row => timeAgo(row.status.completionTime), sortable: true, align: tableColumnAlign.left}, + {name: 'Completion', label: `${i18n.global.t('k8s.Completion')}`, field: row => timeAgo(row.status?.completionTime), sortable: true, align: tableColumnAlign.left}, // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraCronJobColumns:Array = [ @@ -333,13 +333,13 @@ export const extraEndpointSliceColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraVolumeSnapshotColumns:Array = [ - {name: 'ReadyToUse', label: `${i18n.global.t('k8s.ReadyToUse')}`, field: row => row.status.readyToUse, sortable: true, align: tableColumnAlign.left}, + {name: 'ReadyToUse', label: `${i18n.global.t('k8s.ReadyToUse')}`, field: row => row.status?.readyToUse, sortable: true, align: tableColumnAlign.left}, {name: 'SourcePVC', label: `${i18n.global.t('k8s.SourcePVC')}`, field: row => row.spec.source.persistentVolumeClaimName, sortable: true, align: tableColumnAlign.left}, {name: 'SourceSnapshotContent', label: `${i18n.global.t('k8s.SourceSnapshotContent')}`, field: row => row.spec.source.volumeSnapshotContentName, sortable: true, align: tableColumnAlign.left}, - {name: 'RestoreSize', label: `${i18n.global.t('k8s.RestoreSize')}`, field: row => row.status.restoreSize, sortable: true, align: tableColumnAlign.left}, + {name: 'RestoreSize', label: `${i18n.global.t('k8s.RestoreSize')}`, field: row => row.status?.restoreSize, sortable: true, align: tableColumnAlign.left}, {name: 'SnapshotClass', label: `${i18n.global.t('k8s.SnapshotClass')}`, field: row => row.spec.volumeSnapshotClassName, sortable: true, align: tableColumnAlign.left}, - {name: 'SnapshotContent', label: `${i18n.global.t('k8s.SnapshotContent')}`, field: row => row.status.boundVolumeSnapshotContentName, sortable: true, align: tableColumnAlign.left}, - {name: 'CreationTime', label: `${i18n.global.t('k8s.CreationTime')}`, field: row => row.status.creationTime, sortable: true, align: tableColumnAlign.left}, + {name: 'SnapshotContent', label: `${i18n.global.t('k8s.SnapshotContent')}`, field: row => row.status?.boundVolumeSnapshotContentName, sortable: true, align: tableColumnAlign.left}, + {name: 'CreationTime', label: `${i18n.global.t('k8s.CreationTime')}`, field: row => row.status?.creationTime, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraVolumeSnapshotClassColumns:Array = [ @@ -348,8 +348,8 @@ export const extraVolumeSnapshotClassColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraVolumeSnapshotContentColumns:Array = [ - {name: 'ReadyToUse', label: `${i18n.global.t('k8s.ReadyToUse')}`, field: row => row.status.readyToUse, sortable: true, align: tableColumnAlign.left}, - {name: 'RestoreSize', label: `${i18n.global.t('k8s.RestoreSize')}`, field: row => row.status.restoreSize, sortable: true, align: tableColumnAlign.left}, + {name: 'ReadyToUse', label: `${i18n.global.t('k8s.ReadyToUse')}`, field: row => row.status?.readyToUse, sortable: true, align: tableColumnAlign.left}, + {name: 'RestoreSize', label: `${i18n.global.t('k8s.RestoreSize')}`, field: row => row.status?.restoreSize, sortable: true, align: tableColumnAlign.left}, {name: 'DeletionPolicy', label: `${i18n.global.t('k8s.DeletionPolicy')}`, field: row => row.spec.deletionPolicy, sortable: true, align: tableColumnAlign.left}, {name: 'Driver', label: `${i18n.global.t('k8s.Driver')}`, field: row => row.spec.driver, sortable: true, align: tableColumnAlign.left}, {name: 'VolumeSnapshotClass', label: `${i18n.global.t('k8s.VolumeSnapshotClass')}`, field: row => row.spec.volumeSnapshotClassName, sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/keda/custom.ts b/front/libs/keda/custom.ts index 00718fb..f9dd4d7 100644 --- a/front/libs/keda/custom.ts +++ b/front/libs/keda/custom.ts @@ -30,8 +30,8 @@ export const extraCloudEventSourceColumns:Array = [ export const extraClusterTriggerAuthenticationColumns:Array = [ {name: 'PodIdentity', label: `${i18n.global.t('keda.PodIdentity')}`, field: row => row.spec.podIdentity.provider, sortable: true, align: tableColumnAlign.left}, {name: 'VaultAddress', label: `${i18n.global.t('keda.VaultAddress')}`, field: row => row.spec.hashiCorpVault.address, sortable: true, align: tableColumnAlign.left}, - {name: 'ScaledObjects', label: `${i18n.global.t('keda.ScaledObjects')}`, field: row => row.status.scaledobjects, sortable: true, align: tableColumnAlign.left}, - {name: 'ScaledJobs', label: `${i18n.global.t('keda.ScaledJobs')}`, field: row => row.status.scaledjobs, sortable: true, align: tableColumnAlign.left}, + {name: 'ScaledObjects', label: `${i18n.global.t('keda.ScaledObjects')}`, field: row => row.status?.scaledobjects, sortable: true, align: tableColumnAlign.left}, + {name: 'ScaledJobs', label: `${i18n.global.t('keda.ScaledJobs')}`, field: row => row.status?.scaledjobs, sortable: true, align: tableColumnAlign.left}, ]; export const extraScaledJobColumns:Array = [ {name: 'Min', label: `${i18n.global.t('keda.Min')}`, field: row => row.spec.minReplicaCount, sortable: true, align: tableColumnAlign.left}, @@ -39,7 +39,7 @@ export const extraScaledJobColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const extraScaledObjectColumns:Array = [ - {name: 'ScaleTargetKind', label: `${i18n.global.t('keda.ScaleTargetKind')}`, field: row => row.status.scaleTargetKind, sortable: true, align: tableColumnAlign.left}, + {name: 'ScaleTargetKind', label: `${i18n.global.t('keda.ScaleTargetKind')}`, field: row => row.status?.scaleTargetKind, sortable: true, align: tableColumnAlign.left}, {name: 'ScaleTargetName', label: `${i18n.global.t('keda.ScaleTargetName')}`, field: row => row.spec.scaleTargetRef.name, sortable: true, align: tableColumnAlign.left}, {name: 'Min', label: `${i18n.global.t('keda.Min')}`, field: row => row.spec.minReplicaCount, sortable: true, align: tableColumnAlign.left}, {name: 'Max', label: `${i18n.global.t('keda.Max')}`, field: row => row.spec.maxReplicaCount, sortable: true, align: tableColumnAlign.left}, @@ -48,8 +48,8 @@ export const extraScaledObjectColumns:Array = [ export const extraTriggerAuthenticationColumns:Array = [ {name: 'PodIdentity', label: `${i18n.global.t('keda.PodIdentity')}`, field: row => row.spec.podIdentity.provider, sortable: true, align: tableColumnAlign.left}, {name: 'VaultAddress', label: `${i18n.global.t('keda.VaultAddress')}`, field: row => row.spec.hashiCorpVault.address, sortable: true, align: tableColumnAlign.left}, - {name: 'ScaledObjects', label: `${i18n.global.t('keda.ScaledObjects')}`, field: row => row.status.scaledobjects, sortable: true, align: tableColumnAlign.left}, - {name: 'ScaledJobs', label: `${i18n.global.t('keda.ScaledJobs')}`, field: row => row.status.scaledjobs, sortable: true, align: tableColumnAlign.left}, + {name: 'ScaledObjects', label: `${i18n.global.t('keda.ScaledObjects')}`, field: row => row.status?.scaledobjects, sortable: true, align: tableColumnAlign.left}, + {name: 'ScaledJobs', label: `${i18n.global.t('keda.ScaledJobs')}`, field: row => row.status?.scaledjobs, sortable: true, align: tableColumnAlign.left}, ]; export const CloudEventSourceListExcludes = [ ]; diff --git a/front/libs/kubevirt/custom.ts b/front/libs/kubevirt/custom.ts index ad68b37..25ea258 100644 --- a/front/libs/kubevirt/custom.ts +++ b/front/libs/kubevirt/custom.ts @@ -131,19 +131,19 @@ export const descriptionSSP = ''; export const shortSSP = 'SSP'; export const extraKubeVirtColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status.printableStatus, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status?.printableStatus, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineInstanceColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'NodeName', label: `${i18n.global.t('kubevirt.NodeName')}`, field: row => row.status.nodeName, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'NodeName', label: `${i18n.global.t('kubevirt.NodeName')}`, field: row => row.status?.nodeName, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineInstanceMigrationColumns:Array = [ - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, {name: 'VMI', label: `${i18n.global.t('kubevirt.VMI')}`, field: row => row.spec.vmiName, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineInstancePresetColumns:Array = [ @@ -151,19 +151,19 @@ export const extraVirtualMachineInstancePresetColumns:Array = [ ]; export const extraVirtualMachineInstanceReplicaSetColumns:Array = [ {name: 'Desired', label: `${i18n.global.t('kubevirt.Desired')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Current', label: `${i18n.global.t('kubevirt.Current')}`, field: row => row.status.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('kubevirt.Ready')}`, field: row => row.status.readyReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Current', label: `${i18n.global.t('kubevirt.Current')}`, field: row => row.status?.replicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('kubevirt.Ready')}`, field: row => row.status?.readyReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineCloneColumns:Array = [ - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, {name: 'SourceVirtualMachine', label: `${i18n.global.t('kubevirt.SourceVirtualMachine')}`, field: row => row.spec.source.name, sortable: true, align: tableColumnAlign.left}, {name: 'TargetVirtualMachine', label: `${i18n.global.t('kubevirt.TargetVirtualMachine')}`, field: row => row.spec.target.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineExportColumns:Array = [ {name: 'SourceKind', label: `${i18n.global.t('kubevirt.SourceKind')}`, field: row => row.spec.source.kind, sortable: true, align: tableColumnAlign.left}, {name: 'SourceName', label: `${i18n.global.t('kubevirt.SourceName')}`, field: row => row.spec.source.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineClusterInstancetypeColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -182,37 +182,37 @@ export const extraMigrationPolicyColumns:Array = [ ]; export const extraMTQColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachinePoolColumns:Array = [ {name: 'Desired', label: `${i18n.global.t('kubevirt.Desired')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Current', label: `${i18n.global.t('kubevirt.Current')}`, field: row => row.status.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('kubevirt.Ready')}`, field: row => row.status.readyReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Current', label: `${i18n.global.t('kubevirt.Current')}`, field: row => row.status?.replicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('kubevirt.Ready')}`, field: row => row.status?.readyReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineRestoreColumns:Array = [ {name: 'TargetKind', label: `${i18n.global.t('kubevirt.TargetKind')}`, field: row => row.spec.target.kind, sortable: true, align: tableColumnAlign.left}, {name: 'TargetName', label: `${i18n.global.t('kubevirt.TargetName')}`, field: row => row.spec.target.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Complete', label: `${i18n.global.t('kubevirt.Complete')}`, field: row => row.status.complete, sortable: true, align: tableColumnAlign.left}, - {name: 'RestoreTime', label: `${i18n.global.t('kubevirt.RestoreTime')}`, field: row => row.status.restoreTime, sortable: true, align: tableColumnAlign.left}, - {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status.error.message, sortable: true, align: tableColumnAlign.left}, + {name: 'Complete', label: `${i18n.global.t('kubevirt.Complete')}`, field: row => row.status?.complete, sortable: true, align: tableColumnAlign.left}, + {name: 'RestoreTime', label: `${i18n.global.t('kubevirt.RestoreTime')}`, field: row => row.status?.restoreTime, sortable: true, align: tableColumnAlign.left}, + {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status?.error.message, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineSnapshotColumns:Array = [ {name: 'SourceKind', label: `${i18n.global.t('kubevirt.SourceKind')}`, field: row => row.spec.source.kind, sortable: true, align: tableColumnAlign.left}, {name: 'SourceName', label: `${i18n.global.t('kubevirt.SourceName')}`, field: row => row.spec.source.name, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'ReadyToUse', label: `${i18n.global.t('kubevirt.ReadyToUse')}`, field: row => row.status.readyToUse, sortable: true, align: tableColumnAlign.left}, - {name: 'CreationTime', label: `${i18n.global.t('kubevirt.CreationTime')}`, field: row => row.status.creationTime, sortable: true, align: tableColumnAlign.left}, - {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status.error.message, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'ReadyToUse', label: `${i18n.global.t('kubevirt.ReadyToUse')}`, field: row => row.status?.readyToUse, sortable: true, align: tableColumnAlign.left}, + {name: 'CreationTime', label: `${i18n.global.t('kubevirt.CreationTime')}`, field: row => row.status?.creationTime, sortable: true, align: tableColumnAlign.left}, + {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status?.error.message, sortable: true, align: tableColumnAlign.left}, ]; export const extraVirtualMachineSnapshotContentColumns:Array = [ - {name: 'ReadyToUse', label: `${i18n.global.t('kubevirt.ReadyToUse')}`, field: row => row.status.readyToUse, sortable: true, align: tableColumnAlign.left}, - {name: 'CreationTime', label: `${i18n.global.t('kubevirt.CreationTime')}`, field: row => row.status.creationTime, sortable: true, align: tableColumnAlign.left}, - {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status.error.message, sortable: true, align: tableColumnAlign.left}, + {name: 'ReadyToUse', label: `${i18n.global.t('kubevirt.ReadyToUse')}`, field: row => row.status?.readyToUse, sortable: true, align: tableColumnAlign.left}, + {name: 'CreationTime', label: `${i18n.global.t('kubevirt.CreationTime')}`, field: row => row.status?.creationTime, sortable: true, align: tableColumnAlign.left}, + {name: 'Error', label: `${i18n.global.t('kubevirt.Error')}`, field: row => row.status?.error.message, sortable: true, align: tableColumnAlign.left}, ]; export const extraCDIColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraCDIConfigColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -224,14 +224,14 @@ export const extraDataSourceColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraDataVolumeColumns:Array = [ - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Progress', label: `${i18n.global.t('kubevirt.Progress')}`, field: row => row.status.progress, sortable: true, align: tableColumnAlign.left}, - {name: 'Restarts', label: `${i18n.global.t('kubevirt.Restarts')}`, field: row => row.status.restartCount, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Progress', label: `${i18n.global.t('kubevirt.Progress')}`, field: row => row.status?.progress, sortable: true, align: tableColumnAlign.left}, + {name: 'Restarts', label: `${i18n.global.t('kubevirt.Restarts')}`, field: row => row.status?.restartCount, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const extraObjectTransferColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraStorageProfileColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -252,7 +252,7 @@ export const extraHostPathProvisionerColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraSSPColumns:Array = [ - {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('kubevirt.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const KubeVirtListExcludes = [ { path: 'status/phase', include: true }, diff --git a/front/libs/mariadb/custom.ts b/front/libs/mariadb/custom.ts index 53c3688..1ff6af4 100644 --- a/front/libs/mariadb/custom.ts +++ b/front/libs/mariadb/custom.ts @@ -64,7 +64,7 @@ export const extraGrantColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraMariaDBColumns:Array = [ - {name: 'PrimaryPod', label: `${i18n.global.t('mariadb.PrimaryPod')}`, field: row => row.status.currentPrimary, sortable: true, align: tableColumnAlign.left}, + {name: 'PrimaryPod', label: `${i18n.global.t('mariadb.PrimaryPod')}`, field: row => row.status?.currentPrimary, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraRestoreColumns:Array = [ diff --git a/front/libs/min/custom.ts b/front/libs/min/custom.ts index b92cfc6..0be9755 100644 --- a/front/libs/min/custom.ts +++ b/front/libs/min/custom.ts @@ -22,11 +22,11 @@ export const extraMinIOJobColumns:Array = [ {name: 'Phase', label: `${i18n.global.t('min.Phase')}`, field: row => row.spec.status.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraPolicyBindingColumns:Array = [ - {name: 'State', label: `${i18n.global.t('min.State')}`, field: row => row.status.currentState, sortable: true, align: tableColumnAlign.left}, + {name: 'State', label: `${i18n.global.t('min.State')}`, field: row => row.status?.currentState, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const extraTenantColumns:Array = [ - {name: 'State', label: `${i18n.global.t('min.State')}`, field: row => row.status.currentState, sortable: true, align: tableColumnAlign.left}, + {name: 'State', label: `${i18n.global.t('min.State')}`, field: row => row.status?.currentState, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => row.metadata.creationTimestamp, sortable: true, align: tableColumnAlign.left}, ]; export const MinIOJobListExcludes = [ diff --git a/front/libs/mongodb/custom.ts b/front/libs/mongodb/custom.ts index 7d4d5b7..3004859 100644 --- a/front/libs/mongodb/custom.ts +++ b/front/libs/mongodb/custom.ts @@ -10,8 +10,8 @@ export const colorMongoDBCommunity = databaseColor; export const descriptionMongoDBCommunity = ''; export const shortMongoDBCommunity = 'MongoDBCommunity'; export const extraMongoDBCommunityColumns:Array = [ - {name: 'Phase', label: `${i18n.global.t('mongodb.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, - {name: 'Version', label: `${i18n.global.t('mongodb.Version')}`, field: row => row.status.version, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('mongodb.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Version', label: `${i18n.global.t('mongodb.Version')}`, field: row => row.status?.version, sortable: true, align: tableColumnAlign.left}, ]; export const MongoDBCommunityListExcludes = [ { path: 'status/phase', include: true }, diff --git a/front/libs/monitoring/custom.ts b/front/libs/monitoring/custom.ts index 05ebeed..10989a5 100644 --- a/front/libs/monitoring/custom.ts +++ b/front/libs/monitoring/custom.ts @@ -45,9 +45,9 @@ export const shortPrometheusAgent = 'PrometheusAgent'; export const extraAlertmanagerColumns:Array = [ {name: 'Version', label: `${i18n.global.t('monitoring.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, {name: 'Replicas', label: `${i18n.global.t('monitoring.Replicas')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.availableReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.availableReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status.paused, sortable: true, align: tableColumnAlign.left}, + {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status?.paused, sortable: true, align: tableColumnAlign.left}, ]; export const extraPodMonitorColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -58,9 +58,9 @@ export const extraProbeColumns:Array = [ export const extraPrometheusColumns:Array = [ {name: 'Version', label: `${i18n.global.t('monitoring.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, {name: 'Desired', label: `${i18n.global.t('monitoring.Desired')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.availableReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.availableReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status.paused, sortable: true, align: tableColumnAlign.left}, + {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status?.paused, sortable: true, align: tableColumnAlign.left}, ]; export const extraPrometheusRuleColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -71,9 +71,9 @@ export const extraServiceMonitorColumns:Array = [ export const extraThanosRulerColumns:Array = [ {name: 'Version', label: `${i18n.global.t('monitoring.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, {name: 'Replicas', label: `${i18n.global.t('monitoring.Replicas')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.availableReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.availableReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status.paused, sortable: true, align: tableColumnAlign.left}, + {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status?.paused, sortable: true, align: tableColumnAlign.left}, ]; export const extraAlertmanagerConfigColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -81,9 +81,9 @@ export const extraAlertmanagerConfigColumns:Array = [ export const extraPrometheusAgentColumns:Array = [ {name: 'Version', label: `${i18n.global.t('monitoring.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, {name: 'Desired', label: `${i18n.global.t('monitoring.Desired')}`, field: row => row.spec.replicas, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.availableReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.availableReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status.paused, sortable: true, align: tableColumnAlign.left}, + {name: 'Paused', label: `${i18n.global.t('monitoring.Paused')}`, field: row => row.status?.paused, sortable: true, align: tableColumnAlign.left}, ]; export const AlertmanagerListExcludes = [ { path: 'spec/version', include: true }, diff --git a/front/libs/namecheap/custom.ts b/front/libs/namecheap/custom.ts index e90e323..1cbdc0d 100644 --- a/front/libs/namecheap/custom.ts +++ b/front/libs/namecheap/custom.ts @@ -13,7 +13,7 @@ export const shortScheduledResource = 'ScheduledResource'; export const extraScheduledResourceColumns:Array = [ {name: 'In', label: `${i18n.global.t('namecheap.In')}`, field: row => row.spec.in, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Condition', label: `${i18n.global.t('namecheap.Condition')}`, field: row => row.status.condition, sortable: true, align: tableColumnAlign.left}, + {name: 'Condition', label: `${i18n.global.t('namecheap.Condition')}`, field: row => row.status?.condition, sortable: true, align: tableColumnAlign.left}, ]; export const ScheduledResourceListExcludes = [ { path: 'spec/in', include: true }, diff --git a/front/libs/opentelemetry/custom.ts b/front/libs/opentelemetry/custom.ts index 9ff5758..8a5cdea 100644 --- a/front/libs/opentelemetry/custom.ts +++ b/front/libs/opentelemetry/custom.ts @@ -26,15 +26,15 @@ export const extraInstrumentationColumns:Array = [ ]; export const extraOpAMPBridgeColumns:Array = [ {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Version', label: `${i18n.global.t('opentelemetry.Version')}`, field: row => row.status.version, sortable: true, align: tableColumnAlign.left}, + {name: 'Version', label: `${i18n.global.t('opentelemetry.Version')}`, field: row => row.status?.version, sortable: true, align: tableColumnAlign.left}, {name: 'Mode', label: `${i18n.global.t('opentelemetry.Mode')}`, field: row => row.spec.endpoint, sortable: true, align: tableColumnAlign.left}, ]; export const extraOpenTelemetryCollectorColumns:Array = [ {name: 'Mode', label: `${i18n.global.t('opentelemetry.Mode')}`, field: row => row.spec.mode, sortable: true, align: tableColumnAlign.left}, - {name: 'Version', label: `${i18n.global.t('opentelemetry.Version')}`, field: row => row.status.version, sortable: true, align: tableColumnAlign.left}, - {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status.scale.statusReplicas, sortable: true, align: tableColumnAlign.left}, + {name: 'Version', label: `${i18n.global.t('opentelemetry.Version')}`, field: row => row.status?.version, sortable: true, align: tableColumnAlign.left}, + {name: 'Ready', label: `${i18n.global.t('core.ready')}`, field: row => row.status?.scale.statusReplicas, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Image', label: `${i18n.global.t('opentelemetry.Image')}`, field: row => row.status.image, sortable: true, align: tableColumnAlign.left}, + {name: 'Image', label: `${i18n.global.t('opentelemetry.Image')}`, field: row => row.status?.image, sortable: true, align: tableColumnAlign.left}, {name: 'Management', label: `${i18n.global.t('opentelemetry.Management')}`, field: row => row.spec.managementState, sortable: true, align: tableColumnAlign.left}, ]; export const InstrumentationListExcludes = [ diff --git a/front/libs/operators/custom.ts b/front/libs/operators/custom.ts index 5cbe3cb..ec8e671 100644 --- a/front/libs/operators/custom.ts +++ b/front/libs/operators/custom.ts @@ -56,7 +56,7 @@ export const extraClusterServiceVersionColumns:Array = [ {name: 'Display', label: `${i18n.global.t('operators.Display')}`, field: row => row.spec.displayName, sortable: true, align: tableColumnAlign.left}, {name: 'Version', label: `${i18n.global.t('operators.Version')}`, field: row => row.spec.version, sortable: true, align: tableColumnAlign.left}, {name: 'Replaces', label: `${i18n.global.t('operators.Replaces')}`, field: row => row.spec.replaces, sortable: true, align: tableColumnAlign.left}, - {name: 'Phase', label: `${i18n.global.t('operators.Phase')}`, field: row => row.status.phase, sortable: true, align: tableColumnAlign.left}, + {name: 'Phase', label: `${i18n.global.t('operators.Phase')}`, field: row => row.status?.phase, sortable: true, align: tableColumnAlign.left}, ]; export const extraInstallPlanColumns:Array = [ {name: 'Approval', label: `${i18n.global.t('operators.Approval')}`, field: row => row.spec.approval, sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/oracle/custom.ts b/front/libs/oracle/custom.ts index 9e90556..eecece0 100644 --- a/front/libs/oracle/custom.ts +++ b/front/libs/oracle/custom.ts @@ -15,16 +15,16 @@ export const colorMySQLBackup = databaseColor; export const descriptionMySQLBackup = ''; export const shortMySQLBackup = 'MySQLBackup'; export const extraInnoDBClusterColumns:Array = [ - {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status.cluster.status, sortable: true, align: tableColumnAlign.left}, - {name: 'Online', label: `${i18n.global.t('oracle.Online')}`, field: row => row.status.cluster.onlineInstances, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status?.cluster.status, sortable: true, align: tableColumnAlign.left}, + {name: 'Online', label: `${i18n.global.t('oracle.Online')}`, field: row => row.status?.cluster.onlineInstances, sortable: true, align: tableColumnAlign.left}, {name: 'Instances', label: `${i18n.global.t('oracle.Instances')}`, field: row => row.spec.instances, sortable: true, align: tableColumnAlign.left}, {name: 'Routers', label: `${i18n.global.t('oracle.Routers')}`, field: row => row.spec.router.instances, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const extraMySQLBackupColumns:Array = [ {name: 'Cluster', label: `${i18n.global.t('oracle.Cluster')}`, field: row => row.spec.clusterName, sortable: true, align: tableColumnAlign.left}, - {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status.status, sortable: true, align: tableColumnAlign.left}, - {name: 'Output', label: `${i18n.global.t('oracle.Output')}`, field: row => row.status.output, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: `${i18n.global.t('core.status')}`, field: row => row.status?.status, sortable: true, align: tableColumnAlign.left}, + {name: 'Output', label: `${i18n.global.t('oracle.Output')}`, field: row => row.status?.output, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: `${i18n.global.t('meta.age')}`, field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, ]; export const InnoDBClusterListExcludes = [ diff --git a/front/libs/tekton/custom.ts b/front/libs/tekton/custom.ts index 9bd6320..dd79597 100644 --- a/front/libs/tekton/custom.ts +++ b/front/libs/tekton/custom.ts @@ -74,15 +74,15 @@ export const extraPipelineColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraPipelineRunColumns:Array = [ - {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status.startTime), sortable: true, align: tableColumnAlign.left}, - {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status.startTime, row.status.completionTime), sortable: true, align: tableColumnAlign.left}, + {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status?.startTime), sortable: true, align: tableColumnAlign.left}, + {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status?.startTime, row.status?.completionTime), sortable: true, align: tableColumnAlign.left}, ]; export const extraTaskColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraTaskRunColumns:Array = [ - {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status.startTime), sortable: true, align: tableColumnAlign.left}, - {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status.startTime, row.status.completionTime), sortable: true, align: tableColumnAlign.left}, + {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status?.startTime), sortable: true, align: tableColumnAlign.left}, + {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status?.startTime, row.status?.completionTime), sortable: true, align: tableColumnAlign.left}, ]; export const extraStepActionColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, @@ -94,8 +94,8 @@ export const extraClusterTaskColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left}, ]; export const extraCustomRunColumns:Array = [ - {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status.startTime), sortable: true, align: tableColumnAlign.left}, - {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status.startTime, row.status.completionTime), sortable: true, align: tableColumnAlign.left}, + {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.status?.startTime), sortable: true, align: tableColumnAlign.left}, + {name: 'Duration', label: `${i18n.global.t('tekton.Duration')}`, field: row => duration(row.status?.startTime, row.status?.completionTime), sortable: true, align: tableColumnAlign.left}, ]; export const extraResolutionRequestColumns:Array = [ {name: 'StartTime', label: `${i18n.global.t('tekton.StartTime')}`, field: row => dateFormat(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, diff --git a/front/libs/vynil/custom.ts b/front/libs/vynil/custom.ts index 4b8a034..a2246c5 100644 --- a/front/libs/vynil/custom.ts +++ b/front/libs/vynil/custom.ts @@ -20,13 +20,13 @@ export const CategoryListExcludes = []; export const extraDistribColumns:Array = [ {name: 'url', label: `${i18n.global.t('vynil.url')}`, field: row => row.spec.url, sortable: true, align: tableColumnAlign.left}, {name: 'branch', label: `${i18n.global.t('vynil.branch')}`, field: row => row.spec.branch, sortable: true, align: tableColumnAlign.left}, - {name: 'last_updated', label: `${i18n.global.t('meta.lastUpdate')}`, field: row => row.status!=undefined?timeAgo(row.status.last_updated):'', sortable: true, align: tableColumnAlign.left}, + {name: 'last_updated', label: `${i18n.global.t('meta.lastUpdate')}`, field: row => row.status!=undefined?timeAgo(row.status?.last_updated):'', sortable: true, align: tableColumnAlign.left}, ]; export const extraInstallColumns:Array = [ {name: 'dist', label: `${i18n.global.t('vynil.distrib')}`, field: row => row.spec.distrib, sortable: true, align: tableColumnAlign.left}, {name: 'cat', label: `${i18n.global.t('vynil.cat')}`, field: row => row.spec.category, sortable: true, align: tableColumnAlign.left}, {name: 'app', label: `${i18n.global.t('vynil.app')}`, field: row => row.spec.component, sortable: true, align: tableColumnAlign.left}, - {name: 'last_updated', label: `${i18n.global.t('meta.lastUpdate')}`, field: row => row.status!=undefined?timeAgo(row.status.last_updated):'', sortable: true, align: tableColumnAlign.left}, + {name: 'last_updated', label: `${i18n.global.t('meta.lastUpdate')}`, field: row => row.status!=undefined?timeAgo(row.status?.last_updated):'', sortable: true, align: tableColumnAlign.left}, ]; export const DistribListExcludes = [ { path: 'spec/url', include: true }, diff --git a/front/libs/zalando/custom.ts b/front/libs/zalando/custom.ts index 85dc3ff..c3a2ab1 100644 --- a/front/libs/zalando/custom.ts +++ b/front/libs/zalando/custom.ts @@ -26,7 +26,7 @@ export const extrapostgresqlColumns:Array = [ {name: 'CPU-Request', label: i18n.global.t('zalando.CPURequest'), field: row => row.spec.resources.requests.cpu, sortable: true, align: tableColumnAlign.left}, {name: 'Memory-Request', label: i18n.global.t('zalando.MemRequest'), field: row => row.spec.resources.requests.memory, sortable: true, align: tableColumnAlign.left}, {name: 'Age', label: i18n.global.t('meta.age'), field: row => timeAgo(row.metadata.creationTimestamp), sortable: true, align: tableColumnAlign.left}, - {name: 'Status', label: i18n.global.t('core.status'), field: row => row.status.PostgresClusterStatus, sortable: true, align: tableColumnAlign.left}, + {name: 'Status', label: i18n.global.t('core.status'), field: row => row.status?.PostgresClusterStatus, sortable: true, align: tableColumnAlign.left}, ]; export const extraClusterKopfPeeringColumns:Array = [ // {name: 'Name', label: 'Name', field: row => row.metadata.name, sortable: true, align: tableColumnAlign.left},